ScummVM API documentation
Toon::AudioManager Class Reference

Public Member Functions

void removeInstance (AudioStreamInstance *inst)
 
 AudioManager (ToonEngine *vm, Audio::Mixer *mixer)
 
bool voiceStillPlaying ()
 
int playMusic (const Common::String &dir, const Common::String &music)
 
void playVoice (int32 id, bool genericVoice)
 
int32 playSFX (int32 id, int volume, bool genericSFX)
 
void stopCurrentVoice ()
 
void stopAllSfxs ()
 
void setMusicVolume (uint8 volume)
 
void stopMusicChannel (int channelId, bool fade)
 
void stopMusic (bool fade=true)
 
void muteVoice (bool mute)
 
void muteMusic (bool mute)
 
void muteSfx (bool mute)
 
bool isVoiceMuted () const
 
bool isMusicMuted () const
 
bool isSfxMuted () const
 
void startAmbientSFX (int32 id, int32 delay, int32 mode, int32 volume)
 
void killAmbientSFX (int32 id)
 
void killAllAmbientSFX ()
 
void updateAmbientSFX ()
 
void setAmbientSFXVolume (int32 id, int volume)
 
void closeAudioPack (int32 id)
 
bool loadAudioPack (int32 id, const Common::Path &indexFile, const Common::Path &packFile)
 

Public Attributes

AudioStreamInstance_channels [16]
 
AudioStreamPackage_audioPacks [4]
 
int _currentMusicChannel
 
Common::String _currentMusicName
 
ToonEngine_vm
 
Audio::Mixer_mixer
 

Protected Attributes

bool _voiceMuted
 
bool _musicMuted
 
bool _sfxMuted
 
AudioAmbientSFX _ambientSFXs [4]
 

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