Public Member Functions | |
| Player_Towns_v1 (ScummEngine *vm, Audio::Mixer *mixer) | |
| bool | init () override |
| void | setMusicVolume (int vol) override |
| void | startSound (int sound) override |
| void | stopSound (int sound) override |
| void | stopAllSounds () override |
| int | getSoundStatus (int sound) const override |
| int | getCurrentCdaSound () override |
| int | getCurrentCdaVolume () override |
| int32 | doCommand (int numargs, int args[]) override |
| void | setVolumeCD (int left, int right) override |
| void | setSoundVolume (int sound, int left, int right) override |
| void | setSoundNote (int sound, int note) override |
| void | saveLoadWithSerializer (Common::Serializer &ser) override |
| void | restoreAfterLoad () override |
Public Member Functions inherited from Scumm::Player_Towns | |
| Player_Towns (ScummEngine *vm, bool isVersion2) | |
| virtual bool | init ()=0 |
| void | setSfxVolume (int vol) override |
| int | getSoundStatus (int sound) const override |
| virtual int32 | doCommand (int numargs, int args[])=0 |
| void | saveLoadWithSerializer (Common::Serializer &ser) override |
| void | restoreAfterLoad () override |
| virtual int | getCurrentCdaSound () |
| virtual int | getCurrentCdaVolume () |
| virtual void | setVolumeCD (int left, int right) |
| virtual void | setSoundVolume (int sound, int left, int right) |
| virtual void | setSoundNote (int sound, int note) |
Public Member Functions inherited from Scumm::MusicEngine | |
| virtual void | setMusicVolume (int vol)=0 |
| virtual void | setSfxVolume (int vol) |
| virtual void | startSound (int sound)=0 |
| virtual void | startSoundWithTrackID (int sound, int track) |
| virtual void | stopSound (int sound)=0 |
| virtual void | stopAllSounds ()=0 |
| virtual int | getSoundStatus (int sound) const =0 |
| virtual int | getMusicTimer () |
| virtual void | setQuality (int qual) |
| virtual void | toggleMusic (bool enable) |
| virtual void | toggleSoundEffects (bool enable) |
| void | saveLoadWithSerializer (Common::Serializer &ser) override |
| virtual void | restoreAfterLoad () |
| virtual void | saveLoadWithSerializer (Serializer &ser)=0 |
Additional Inherited Members | |
Protected Member Functions inherited from Scumm::Player_Towns | |
| void | playPcmTrack (int sound, const uint8 *data, int velo=0, int pan=64, int note=0, int priority=0) |
| void | stopPcmTrack (int sound) |
| int | allocatePcmChannel (int sound, int sfxChanRelIndex, uint32 priority) |
Protected Attributes inherited from Scumm::Player_Towns | |
| struct Scumm::Player_Towns::PcmCurrentSound | _pcmCurrentSound [9] |
| uint8 | _unkFlags = 0x33 |
| TownsAudioInterface * | _intf = nullptr |
| ScummEngine * | _vm |
| const int | _numSoundMax |
| const bool | _v2 |
|
overridevirtual |
Implements Scumm::Player_Towns.
|
overridevirtual |
Set the output volume for music. Also used, if the inheriting class doesn't distinguish between music and sfx.
| vol | the new output volume |
Implements Scumm::MusicEngine.
|
overridevirtual |
Start playing the sound with the given id.
| sound | the sound to start |
Implements Scumm::MusicEngine.
|
overridevirtual |
Stop playing the sound with the given id.
| sound | the sound to stop |
Implements Scumm::MusicEngine.
|
overridevirtual |
Start playing all currently playing sounds.
Implements Scumm::MusicEngine.
|
overridevirtual |
Query the status of the sound with the given id. Usually this is just a boolean telling us whether the sound is playing or not.
| sound | the sound to for which we want the status |
Reimplemented from Scumm::Player_Towns.
|
inlineoverridevirtual |
Reimplemented from Scumm::Player_Towns.
|
inlineoverridevirtual |
Reimplemented from Scumm::Player_Towns.
|
overridevirtual |
Implements Scumm::Player_Towns.
|
overridevirtual |
Reimplemented from Scumm::Player_Towns.
|
overridevirtual |
Reimplemented from Scumm::Player_Towns.
|
overridevirtual |
Reimplemented from Scumm::Player_Towns.
|
overridevirtual |
Save or load the music state.
Reimplemented from Scumm::Player_Towns.
|
overridevirtual |
Performs necessary post-load operations on the sound engine, like restarting of music tracks or looping pcm sounds. Some targets get this done via scripts but others don't. Currently, this is used for FM-Towns and Mac.
Reimplemented from Scumm::Player_Towns.