|
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) |
|
struct Scumm::Player_Towns::PcmCurrentSound | _pcmCurrentSound [9] |
|
uint8 | _unkFlags = 0x33 |
|
TownsAudioInterface * | _intf = nullptr |
|
ScummEngine * | _vm |
|
const int | _numSoundMax |
|
const bool | _v2 |
|
◆ setMusicVolume()
void Scumm::Player_Towns_v1::setMusicVolume |
( |
int |
vol | ) |
|
|
overridevirtual |
Set the output volume for music. Also used, if the inheriting class doesn't distinguish between music and sfx.
- Parameters
-
Implements Scumm::MusicEngine.
◆ startSound()
void Scumm::Player_Towns_v1::startSound |
( |
int |
sound | ) |
|
|
overridevirtual |
◆ stopSound()
void Scumm::Player_Towns_v1::stopSound |
( |
int |
sound | ) |
|
|
overridevirtual |
◆ stopAllSounds()
void Scumm::Player_Towns_v1::stopAllSounds |
( |
| ) |
|
|
overridevirtual |
◆ getSoundStatus()
int Scumm::Player_Towns_v1::getSoundStatus |
( |
int |
sound | ) |
const |
|
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.
- Parameters
-
sound | the sound to for which we want the status |
- Returns
- the status of the specified sound
Reimplemented from Scumm::Player_Towns.
◆ saveLoadWithSerializer()
◆ restoreAfterLoad()
void Scumm::Player_Towns_v1::restoreAfterLoad |
( |
| ) |
|
|
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.
The documentation for this class was generated from the following file: