ScummVM API documentation
Queen::PCSound Class Referenceabstract
Inheritance diagram for Queen::PCSound:
Queen::Sound

Public Member Functions

 PCSound (Audio::Mixer *mixer, QueenEngine *vm)
 
void playSfx (uint16 sfx) override
 
void playSpeech (const char *base) override
 
void playSong (int16 songNum) override
 
void stopSfx () override
 
void stopSong () override
 
void stopSpeech () override
 
bool isSpeechActive () const override
 
bool isSfxActive () const override
 
void setVolume (int vol) override
 
- Public Member Functions inherited from Queen::Sound
 Sound (Audio::Mixer *mixer, QueenEngine *vm)
 
virtual void playSfx (uint16 sfx)
 
virtual void playSong (int16 songNum)
 
virtual void playSpeech (const char *base)
 
virtual void stopSfx ()
 
virtual void stopSong ()
 
virtual void stopSpeech ()
 
virtual bool isSpeechActive () const
 
virtual bool isSfxActive () const
 
virtual void updateMusic ()
 
virtual void setVolume (int vol)
 
virtual int getVolume ()
 
void playLastSong ()
 
bool sfxOn () const
 
void sfxToggle (bool val)
 
void toggleSfx ()
 
bool speechOn () const
 
void speechToggle (bool val)
 
void toggleSpeech ()
 
bool musicOn () const
 
void musicToggle (bool val)
 
void toggleMusic ()
 
bool speechSfxExists () const
 
int16 lastOverride () const
 
void saveState (byte *&ptr)
 
void loadState (uint32 ver, byte *&ptr)
 

Protected Member Functions

void playSound (const char *base, bool isSpeech)
 
virtual void playSoundData (Common::File *f, uint32 size, Audio::SoundHandle *soundHandle)=0
 

Protected Attributes

Audio::SoundHandle _sfxHandle
 
Audio::SoundHandle _speechHandle
 
MidiMusic * _music
 
- Protected Attributes inherited from Queen::Sound
Audio::Mixer * _mixer
 
QueenEngine * _vm
 
bool _sfxToggle
 
bool _speechToggle
 
bool _musicToggle
 
bool _speechSfxExists
 
int16 _lastOverride
 
int _musicVolume
 

Additional Inherited Members

- Static Public Member Functions inherited from Queen::Sound
static Sound * makeSoundInstance (Audio::Mixer *mixer, QueenEngine *vm, uint8 compression)
 
- Static Public Attributes inherited from Queen::Sound
static const SongData _songDemo []
 
static const SongData _song []
 
static const TuneData _tuneDemo []
 
static const TuneData _tune []
 
static const char *const _sfxName []
 
static const int16 _jungleList []
 

Member Function Documentation

◆ playSfx()

void Queen::PCSound::playSfx ( uint16  sfx)
overridevirtual

Reimplemented from Queen::Sound.

◆ playSpeech()

void Queen::PCSound::playSpeech ( const char *  base)
overridevirtual

Reimplemented from Queen::Sound.

◆ playSong()

void Queen::PCSound::playSong ( int16  songNum)
overridevirtual

Reimplemented from Queen::Sound.

◆ stopSfx()

void Queen::PCSound::stopSfx ( )
inlineoverridevirtual

Reimplemented from Queen::Sound.

◆ stopSong()

void Queen::PCSound::stopSong ( )
overridevirtual

Reimplemented from Queen::Sound.

◆ stopSpeech()

void Queen::PCSound::stopSpeech ( )
inlineoverridevirtual

Reimplemented from Queen::Sound.

◆ isSpeechActive()

bool Queen::PCSound::isSpeechActive ( ) const
inlineoverridevirtual

Reimplemented from Queen::Sound.

◆ isSfxActive()

bool Queen::PCSound::isSfxActive ( ) const
inlineoverridevirtual

Reimplemented from Queen::Sound.

◆ setVolume()

void Queen::PCSound::setVolume ( int  vol)
overridevirtual

Reimplemented from Queen::Sound.


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