#include <Sound.h>
Inherits SoundMedia.
Inheritance diagram for Sound:
Public Member Functions | |
Sound () | |
virtual | ~Sound () |
bool | load (const char *filename) |
bool | unload () |
void | play (int volume=255) |
void | stop () |
Protected Attributes | |
FSOUND_SAMPLE * | sample |
Author: Petter Alstermark, petter@alstermark.com
Definition at line 12 of file Sound.h.
|
Author: Petter Alstermark, petter@alstermark.com Definition at line 9 of file Sound.cpp. References sample. |
|
|
|
Reimplemented from SoundMedia. Definition at line 17 of file Sound.cpp. References FMOD_ErrorString(), FSOUND_GetError(), FSOUND_LOOP_OFF, FSOUND_NORMAL, FSOUND_Sample_Load(), FSOUND_Sample_SetMode(), FSOUND_UNMANAGED, LOG_ERROR, LOG_SUCCESS, and sample. Referenced by Menu::load(), Join::load(), and Play::loadSounds(). Here is the call graph for this function: |
|
Definition at line 37 of file Sound.cpp. References FSOUND_FREE, FSOUND_PlaySound(), FSOUND_SetVolume(), and sample. Referenced by Join::addLevel(), Play::drawProjectiles(), Play::grenadeExplode(), Play::handleKeys(), Play::networkLoop(), Join::networkLoop(), Join::removeLevel(), Menu::updateCreate(), Menu::updateJoin(), and Menu::updateMain(). Here is the call graph for this function: |
|
Reimplemented from SoundMedia. |
|
Reimplemented from SoundMedia. Definition at line 30 of file Sound.cpp. References FSOUND_Sample_Free(), LOG_SUCCESS, and sample. Referenced by Play::unload(), Menu::unload(), and Join::unload(). Here is the call graph for this function: |
|
|