Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F624869
soundfx.cpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
781 B
Referenced Files
None
Subscribers
None
soundfx.cpp
View Options
#include
"soundfx.h"
SoundFX
::
SoundFX
()
{
if
(
!
soundCollectBuffer
.
loadFromFile
(
"assets/audio/collect.ogg"
))
exit
(
-1
);
if
(
!
soundCardBuffer
.
loadFromFile
(
"assets/audio/card.ogg"
))
exit
(
-1
);
soundCollect
.
setBuffer
(
soundCollectBuffer
);
soundCollect
.
setVolume
(
20
);
soundCard
.
setBuffer
(
soundCardBuffer
);
// soundCollect.setVolume(20);
if
(
!
soundLetsBeginBuffer
.
loadFromFile
(
"assets/audio/letsbegin.ogg"
))
exit
(
-1
);
soundLetsBegin
.
setBuffer
(
soundLetsBeginBuffer
);
soundLetsBegin
.
setVolume
(
20
);
}
void
SoundFX
::
playCollect
()
{
soundCollect
.
play
();
}
void
SoundFX
::
playCard
()
{
soundCard
.
play
();
}
void
SoundFX
::
playLetsBegin
()
{
// std::cout << "playing.... begin lets" << std::endl;
soundLetsBegin
.
play
();
}
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Sat, Nov 14, 10:48 PM (16 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
122542
Default Alt Text
soundfx.cpp (781 B)
Attached To
Mode
R82 deerportal
Attached
Detach File
Event Timeline