#include <sound.h>
Public Member Functions | |
| Sound (const ASCString &filename, int fadeIn=0) | |
| Create a Sound from the .wav file specified by filename. | |
| Sound (const ASCString &startSoundFilename, const ASCString &continuousSoundFilename, int fadeIn=0) | |
| void | play (void) |
| void | playWait (void) |
| void | playLoop () |
| void | stop () |
| void | fadeOut (int ms) |
| bool | load () |
| ~Sound (void) | |
Friends | |
| class | SoundSystem |
|
||||||||||||
|
Create a Sound from the .wav file specified by filename. If it's not possible to use the wave file for some reason, the sound is set to silence.
Definition at line 371 of file sound.cpp. References fatalError(), loadWave(), Sound_InternalData::mainsample, and Sound_InternalData::mainwave. |
|
||||||||||||||||
|
Definition at line 383 of file sound.cpp. References fatalError(), loadWave(), Sound_InternalData::mainsample, Sound_InternalData::mainwave, Sound_InternalData::startsample, and Sound_InternalData::startwave. |
|
|
Definition at line 496 of file sound.cpp. References Sound_InternalData::mainsample, Sound_InternalData::mainwave, Sound_FreeSample(), Sound_InternalData::startsample, Sound_InternalData::startwave, and stop(). |
|
|
Definition at line 487 of file sound.cpp. Referenced by SoundLoopManager::fadeOut(). |
|
|
|
|
|
Definition at line 440 of file sound.cpp. References SoundSystem::areEffectsMuted(), SoundSystem_InternalData::channel, SoundSystem::internalData, and Sound_InternalData::mainwave. Referenced by main(), PG_MapDisplay::playPositionalSound(), and SoundList::playSound(). |
|
|
Definition at line 449 of file sound.cpp. References SoundSystem::areEffectsMuted(), SoundSystem_InternalData::channel, SoundSystem::internalData, and Sound_InternalData::mainwave. Referenced by SoundLoopManager::activate(), and SoundList::playSound(). |
|
|
Definition at line 466 of file sound.cpp. References SoundSystem::areEffectsMuted(), SoundSystem_InternalData::channel, SoundSystem::internalData, Sound_InternalData::mainwave, Sound_InternalData::startwave, and WAIT_SLEEP_MSEC. |
|
|
Definition at line 458 of file sound.cpp. Referenced by ~Sound(), and SoundLoopManager::~SoundLoopManager(). |
|
|
|
1.4.2