ScummVM API documentation
Neverhood::SoundMan Class Reference

Public Member Functions

 SoundMan (NeverhoodEngine *vm)
 
void stopAllMusic ()
 
void stopAllSounds ()
 
void addMusic (uint32 groupNameHash, uint32 musicFileHash)
 
void deleteMusic (uint32 musicFileHash)
 
void startMusic (uint32 musicFileHash, int16 countdown, int16 fadeVolumeStep)
 
void stopMusic (uint32 musicFileHash, int16 countdown, int16 fadeVolumeStep)
 
void addSound (uint32 groupNameHash, uint32 soundFileHash)
 
void addSoundList (uint32 groupNameHash, const uint32 *soundFileHashList)
 
void deleteSound (uint32 soundFileHash)
 
void setSoundParams (uint32 soundFileHash, bool playOnceAfterRandomCountdown, int16 minCountdown, int16 maxCountdown, int16 firstMinCountdown, int16 firstMaxCountdown)
 
void setSoundListParams (const uint32 *soundFileHashList, bool playOnceAfterRandomCountdown, int16 minCountdown, int16 maxCountdown, int16 firstMinCountdown, int16 firstMaxCountdown)
 
void playSoundLooping (uint32 soundFileHash)
 
void stopSound (uint32 soundFileHash)
 
void setSoundVolume (uint32 soundFileHash, int volume)
 
void update ()
 
void deleteGroup (uint32 groupNameHash)
 
void deleteMusicGroup (uint32 groupNameHash)
 
void deleteSoundGroup (uint32 groupNameHash)
 
void playTwoSounds (uint32 groupNameHash, uint32 soundFileHash1, uint32 soundFileHash2, int16 initialCountdown)
 
void playSoundThree (uint32 groupNameHash, uint32 soundFileHash)
 
void setTwoSoundsPlayFlag (bool playOnceAfterCountdown)
 
void setSoundThreePlayFlag (bool playOnceAfterCountdown)
 

Protected Member Functions

MusicItemgetMusicItemByHash (uint32 musicFileHash)
 
SoundItemgetSoundItemByHash (uint32 soundFileHash)
 
int16 addMusicItem (MusicItem *musicItem)
 
int16 addSoundItem (SoundItem *soundItem)
 
void deleteSoundByIndex (int index)
 

Protected Attributes

NeverhoodEngine_vm
 
int _soundIndex1
 
int _soundIndex2
 
int16 _initialCountdown
 
bool _playOnceAfterCountdown
 
int _soundIndex3
 
int16 _initialCountdown3
 
bool _playOnceAfterCountdown3
 
Common::Array< MusicItem * > _musicItems
 
Common::Array< SoundItem * > _soundItems
 

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