ScummVM API documentation
Pelrock::SoundManager Class Reference

Public Member Functions

 SoundManager (Audio::Mixer *mixer)
 
void playSound (byte index, int channel=-1, int loopCount=1)
 
void playSound (const char *filename, int channel, int loopCount=1)
 
void playSound (byte *soundData, uint32 size, int channel)
 
void stopAllSounds ()
 
void stopSound (int channel)
 
void setVolumeSfx (int volume)
 
void setVolumeMusic (int volume)
 
void setVolumeMaster (int volume)
 
int getVolumeSfx () const
 
int getVolumeMusic () const
 
int getVolumeMaster () const
 
bool isPlaying () const
 
bool isPlaying (int channel) const
 
bool isSoundIndexPlaying (byte index) const
 
void loadSoundIndex ()
 
bool isMusicPlaying ()
 
void playMusicTrack (int trackNumber, bool loop=true)
 
void stopMusic ()
 
void pauseMusic ()
 
int tickAmbientSound (uint32 frameCount)
 
void playClick ()
 
void playClonk ()
 
bool isPaused () const
 
byte getCurrentMusicTrack () const
 

Member Function Documentation

◆ tickAmbientSound()

int Pelrock::SoundManager::tickAmbientSound ( uint32  frameCount)

Check if ambient sound should play this frame.


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