Public Member Functions | |
| ASound9 (Audio::Mixer *mixer) | |
| int | command (int commandId, int param) override |
Public Member Functions inherited from MADS::RexNebular::Sound::ASound | |
| ASound (Audio::Mixer *mixer, const Common::Path &filename, int dataOffset, int dataSize) | |
| ~ASound () override | |
| int | stop () override |
| int | poll () override |
| void | noise () override |
| int | getFrameCounter () |
| void | setVolume (int volume) override |
Public Member Functions inherited from MADS::SoundDriver | |
| SoundDriver (Audio::Mixer *mixer, const Common::Path &filename, int dataOffset, int dataSize) | |
| virtual void | pause (bool paused) |
| virtual void | stopAllNotes () |
Additional Inherited Members | |
Static Public Member Functions inherited from MADS::RexNebular::Sound::ASound | |
| static void | validate (bool isDemo) |
Public Attributes inherited from MADS::RexNebular::Sound::ASound | |
| AdlibChannel | _channels [9] |
| AdlibChannel * | _activeChannelPtr |
| AdlibChannelData | _channelData [11] |
| Common::Array< AdlibSample > | _samples |
| AdlibSample * | _samplePtr |
| int | _frameCounter |
| bool | _isDisabled |
| int | _noiseTicks1 |
| int | _noiseTicks2 |
| int | _activeChannelNumber |
| int | _freqMask1 |
| int | _freqMask2 |
| int | _freqBase1 |
| int | _freqBase2 |
| int | _noiseChannel1 |
| int | _noiseChannel2 |
| int | _noiseFreqStep1 |
| int | _noiseFreqStep2 |
| int | _savedNoiseTicks1 |
| int | _savedNoiseTicks2 |
| int | _pollResult |
| int | _resultFlag |
| byte | _nullData [2] |
| uint8 | _ports [256] |
| bool | _stateFlag |
| int | _activeChannelReg |
| int | _outputReg |
| bool | _amDep |
| bool | _vibDep |
| bool | _splitPoint |
Protected Member Functions inherited from MADS::RexNebular::Sound::ASound | |
| byte * | loadData (int offset) |
| int | getDataOffset (byte *ptr) const |
| void | loadSample (int sampleIndex) |
| void | write (uint8 reg, uint8 val) |
| int | write2 (int state, uint8 reg, uint8 val) |
| void | channelOn (int reg, int volume) |
| void | channelOff (int reg) |
| void | resultCheck () |
| void | playSound (int offset) |
| void | playSoundAny (int offset) |
| void | playSoundData (byte *pData, int startingChannel=5) |
| bool | isSoundActive (byte *pData) |
| void | setFrequency (int channel, int freq) |
| int | getRandomNumber () |
| byte * | getDataPtr (int nearPtr) |
| virtual int | command0 () |
| int | command1 () |
| int | command2 () |
| int | command3 () |
| int | command4 () |
| int | command5 () |
| int | command6 () |
| int | command7 () |
| int | command8 () |
| int | nullCommand () |
Protected Member Functions inherited from MADS::SoundDriver | |
| Common::MemoryReadStream | getDataStream (int offset) const |
| SoundDriver (Audio::Mixer *mixer) | |
Protected Attributes inherited from MADS::RexNebular::Sound::ASound | |
| int | _commandParam |
Protected Attributes inherited from MADS::SoundDriver | |
| Audio::Mixer * | _mixer |
| Common::Array< byte > | _soundData |
| Common::Mutex | _driverMutex |
| bool | _paused |
|
overridevirtual |
Execute a player command. Most commands represent sounds to play, but some low number commands also provide control operations.
| commandId | Player ommand to execute. |
| param | Optional parameter used by a few commands |
Implements MADS::SoundDriver.