#include <sound.h>
Public Member Functions | |
| SoundSystem (bool muteEffects, bool muteMusic, bool off) | |
| Sets up ASC's sound system. | |
| void | setEffectsMute (bool mute) |
| Turns the sound on and off. | |
| bool | areEffectsMuted () |
| can sounds be played right now ? | |
| bool | isOff () |
| is the soundsystem completely disabled ? | |
| void | playMusic (MusicPlayList *playlist) |
| plays the pieces of music which are referenced in the playlist | |
| void | pauseMusic () |
| Pauses the music that is currently being played. | |
| void | resumeMusic () |
| resumes the music | |
| void | resumePauseMusic () |
| resumes or resumes the music, depending whether is music is paused or playing | |
| void | setMusicVolume (int Volume) |
| Sets the music volume. Range is 0 .. 100. | |
| void | setEffectVolume (int Volume) |
| Sets the sound effect volume. Range is 0 .. 100. | |
| int | getEffectVolume () |
| Returns the sound effect volume. This is already normalized to the 0 .. 128 range of SDL_Mixer ! | |
| ASCString | getDiagnosticText () |
| ~SoundSystem () | |
Static Public Member Functions | |
| static SoundSystem * | getInstance () |
Friends | |
| class | Sound |
| loads a sound from the wave file called name to an Mix_buffer. | |
|
||||||||||||||||
|
Sets up ASC's sound system.
Definition at line 54 of file sound.cpp. References displayLogMessage(), fatalError(), Sound_Init(), and warning(). |
|
|
Definition at line 272 of file sound.cpp. References SoundSystem_InternalData::musicBuf. |
|
|
can sounds be played right now ?
Definition at line 101 of file sound.h. Referenced by Sound::play(), Sound::playLoop(), and Sound::playWait(). |
|
|
Definition at line 145 of file sound.cpp. References SoundSystem_InternalData::currentPlaylist, MusicPlayList::getDiagnosticText(), SoundSystem_InternalData::lastMusicMessage, and ASCString::toString(). |
|
|
Returns the sound effect volume. This is already normalized to the 0 .. 128 range of SDL_Mixer !
|
|
|
Definition at line 127 of file sound.h. Referenced by PlayListSelector::buttonpressed(), SoundSettings::diag(), execuseraction(), SoundList::getSound(), and startMusic(). |
|
|
is the soundsystem completely disabled ?
|
|
|
Pauses the music that is currently being played.
Definition at line 214 of file sound.cpp. Referenced by resumePauseMusic(). |
|
|
plays the pieces of music which are referenced in the playlist
Definition at line 207 of file sound.cpp. References SoundSystem_InternalData::currentPlaylist. |
|
|
resumes the music
Definition at line 225 of file sound.cpp. Referenced by resumePauseMusic(). |
|
|
resumes or resumes the music, depending whether is music is paused or playing
Definition at line 243 of file sound.cpp. References pauseMusic(), and resumeMusic(). |
|
|
Turns the sound on and off.
|
|
|
Sets the sound effect volume. Range is 0 .. 100.
Definition at line 261 of file sound.cpp. Referenced by main(). |
|
|
Sets the music volume. Range is 0 .. 100.
Definition at line 251 of file sound.cpp. Referenced by main(). |
|
|
loads a sound from the wave file called name to an Mix_buffer.
|
1.4.2