ScummVM API documentation
HDB::Sound Class Reference

Public Types

enum  { GUY, OTHER, MAX_VOICES }
 

Public Member Functions

void test ()
 
void init ()
 
void save (Common::OutSaveFile *out)
 
void loadSaveFile (Common::InSaveFile *in)
 
void setVoiceStatus (bool value)
 
bool getVoiceStatus ()
 
void clearPersistent ()
 
void playSound (int index)
 
void playSoundEx (int index, int channel, bool loop)
 
void playVoice (int index, int actor)
 
void stopVoices ()
 
void startMusic (SoundType song)
 
void fadeInMusic (SoundType song, int ramp)
 
void fadeOutMusic (int ramp)
 
void stopMusic ()
 
void beginMusic (SoundType song, bool fadeIn, int ramp)
 
bool songPlaying (SoundType song)
 
void stopChannel (int channel)
 
int registerSound (const char *name)
 
void freeSound (int index)
 
const char * getSNDLuaName (int index)
 
int getSNDIndex (const char *name)
 
int getNumSounds ()
 
SoundType whatSongIsPlaying ()
 
void markSoundCacheFreeable ()
 

Public Attributes

Voice _voices [MAX_VOICES]
 
bool _voicesOn
 
byte _voicePlayed [(LAST_SOUND - V00_AIRLOCK_01)]
 
Song _song1
 
Song _song2
 
SoundCache _soundCache [kMaxSounds]
 
int _numSounds
 
Audio::SoundHandle _handles [kMaxSNDChannels]
 

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