ScummVM API documentation
AGOS::Sound Class Reference

Public Types

enum  TypeFlags { TYPE_AMBIENT = 1 << 0, TYPE_SFX = 1 << 1, TYPE_SFX5 = 1 << 2 }
 

Public Member Functions

 Sound (AGOSEngine *vm, const GameSpecificSettings *gss, Audio::Mixer *mixer)
 
void readSfxFile (const Common::Path &filename)
 
void loadSfxTable (const char *gameFilename, uint32 base)
 
void readVoiceFile (const Common::Path &filename)
 
void playVoice (uint sound)
 
void playEffects (uint sound)
 
void playAmbient (uint sound)
 
void handleSoundQueue ()
 
void queueSound (byte *ptr, uint16 sound, uint32 size, uint16 freq)
 
void playRawData (byte *soundData, uint sound, uint size, uint freq)
 
void playAmbientData (byte *soundData, uint sound, uint pan, uint vol)
 
void playSfxData (byte *soundData, uint sound, uint pan, uint vol)
 
void playSfx5Data (byte *soundData, uint sound, uint pan, uint vol)
 
void playSoundData (Audio::SoundHandle *handle, byte *soundData, uint sound, int pan=0, int vol=0, bool loop=false)
 
void playVoiceData (byte *soundData, uint sound)
 
void switchVoiceFile (const GameSpecificSettings *gss, uint disc)
 
bool hasVoice () const
 
bool isSfxActive () const
 
bool isVoiceActive () const
 
void stopAllSfx ()
 
void stopSfx ()
 
void stopSfx5 ()
 
void stopVoice ()
 
void stopAll ()
 
void effectsMute (bool mute, uint16 effectsVolume)
 
void ambientMute (bool mute, uint16 effectsVolume)
 

Protected Member Functions

void loadVoiceFile (const GameSpecificSettings *gss)
 
void loadSfxFile (const GameSpecificSettings *gss)
 

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