ScummVM API documentation
MADS::Nebular::ASound8 Class Reference
Inheritance diagram for MADS::Nebular::ASound8:
MADS::Nebular::ASound

Public Member Functions

 ASound8 (Audio::Mixer *mixer, OPL::OPL *opl)
 
int command (int commandId, int param) override
 
- Public Member Functions inherited from MADS::Nebular::ASound
 ASound (Audio::Mixer *mixer, OPL::OPL *opl, const Common::Path &filename, int dataOffset)
 
virtual ~ASound ()
 
int stop ()
 
int poll ()
 
void noise ()
 
int getFrameCounter ()
 
CachedDataEntrygetCachedData (byte *pData)
 
void setVolume (int volume)
 

Additional Inherited Members

- Static Public Member Functions inherited from MADS::Nebular::ASound
static void validate ()
 
- Public Attributes inherited from MADS::Nebular::ASound
Audio::Mixer_mixer
 
OPL::OPL_opl
 
AdlibChannel _channels [9]
 
AdlibChannel_activeChannelPtr
 
AdlibChannelData _channelData [11]
 
Common::Array< AdlibSample_samples
 
AdlibSample_samplePtr
 
Common::File _soundFile
 
Common::Queue< RegisterValue_queue
 
Common::Mutex _driverMutex
 
int _dataOffset
 
int _frameCounter
 
bool _isDisabled
 
int _v1
 
int _v2
 
int _activeChannelNumber
 
int _freqMask1
 
int _freqMask2
 
int _freqBase1
 
int _freqBase2
 
int _channelNum1
 
int _channelNum2
 
int _v7
 
int _v8
 
int _v9
 
int _v10
 
int _pollResult
 
int _resultFlag
 
byte _nullData [2]
 
int _ports [256]
 
bool _stateFlag
 
int _activeChannelReg
 
int _v11
 
bool _amDep
 
bool _vibDep
 
bool _splitPoint
 
- Protected Member Functions inherited from MADS::Nebular::ASound
void write (int reg, int val)
 
int write2 (int state, int reg, int val)
 
void flush ()
 
void channelOn (int reg, int volume)
 
void channelOff (int reg)
 
void resultCheck ()
 
byte * loadData (int offset, int size)
 
void playSound (int offset, int size)
 
void playSoundData (byte *pData, int startingChannel=5)
 
bool isSoundActive (byte *pData)
 
void setFrequency (int channel, int freq)
 
int getRandomNumber ()
 
virtual int command0 ()
 
int command1 ()
 
int command2 ()
 
int command3 ()
 
int command4 ()
 
int command5 ()
 
int command6 ()
 
int command7 ()
 
int command8 ()
 
int nullCommand ()
 
- Protected Attributes inherited from MADS::Nebular::ASound
int _commandParam
 

Member Function Documentation

◆ command()

int MADS::Nebular::ASound8::command ( int  commandId,
int  param 
)
overridevirtual

Execute a player command. Most commands represent sounds to play, but some low number commands also provide control operations.

Parameters
commandIdPlayer ommand to execute.
paramOptional parameter used by a few commands

Implements MADS::Nebular::ASound.


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