ScummVM API documentation
Illusions::SoundMan Class Reference

Public Member Functions

 SoundMan (IllusionsEngine *vm)
 
void update ()
 
void playMusic (uint32 musicId, int16 type, int16 volume, int16 pan, uint32 notifyThreadId)
 
void stopMusic ()
 
void playMidiMusic (uint32 musicId)
 
void stopMidiMusic ()
 
void fadeMidiMusic (int16 finalVolume, int16 duration, uint32 notifyThreadId)
 
void clearMidiMusicQueue ()
 
uint16 getMusicVolume ()
 
uint16 getSfxVolume ()
 
uint16 getSpeechVolume ()
 
void setMusicVolume (uint16 volume)
 
void setSfxVolume (uint16 volume)
 
void setSpeechVolume (uint16 volume)
 
bool cueVoice (const char *voiceName)
 
void stopCueingVoice ()
 
void startVoice (int16 volume, int16 pan)
 
void stopVoice ()
 
void pauseVoice ()
 
void unpauseVoice ()
 
bool isVoicePlaying ()
 
bool isVoiceEnabled ()
 
bool isVoiceCued ()
 
void loadSound (uint32 soundEffectId, uint32 soundGroupId, bool looping)
 
void playSound (uint32 soundEffectId, int16 volume, int16 pan)
 
void stopSound (uint32 soundEffectId)
 
void stopLoopingSounds ()
 
void unloadSounds (uint32 soundGroupId)
 

Protected Types

typedef Common::List< Sound * > SoundList
 
typedef SoundList::iterator SoundListIterator
 

Protected Member Functions

Sound * getSound (uint32 soundEffectId)
 
void updateMidi ()
 
void updateMidiMusicFader ()
 
uint16 calcAdjustedVolume (const Common::String &volumeConfigKey, uint16 volume)
 

Protected Attributes

IllusionsEngine * _vm
 
uint32 _musicNotifyThreadId
 
MusicPlayer * _musicPlayer
 
MidiPlayer * _midiPlayer
 
VoicePlayer * _voicePlayer
 
SoundList _sounds
 
Common::Array< uint32 > _midiMusicQueue
 
MidiMusicFader _midiMusicFader
 

The documentation for this class was generated from the following file: