ScummVM API documentation
MADS::SoundDriver Class Referenceabstract
Inheritance diagram for MADS::SoundDriver:
MADS::Nebular::ASound MADS::MADSV2::Phantom::PhantomASound MADS::Nebular::RexASound MADS::MADSV2::Phantom::ASound1 MADS::MADSV2::Phantom::ASound2 MADS::MADSV2::Phantom::ASound3 MADS::MADSV2::Phantom::ASound4 MADS::MADSV2::Phantom::ASound5 MADS::MADSV2::Phantom::ASound9 MADS::Nebular::ASound1 MADS::Nebular::ASound2 MADS::Nebular::ASound3 MADS::Nebular::ASound4 MADS::Nebular::ASound5 MADS::Nebular::ASound6 MADS::Nebular::ASound7 MADS::Nebular::ASound8 MADS::Nebular::ASound9

Public Member Functions

 SoundDriver (Audio::Mixer *mixer, OPL::OPL *opl)
 
virtual int command (int commandId, int param)=0
 
virtual int stop ()=0
 
virtual int poll ()
 
virtual void noise ()=0
 
virtual void setVolume (int volume)=0
 

Protected Attributes

Audio::Mixer_mixer
 
OPL::OPL_opl
 

Member Function Documentation

◆ command()

virtual int MADS::SoundDriver::command ( int  commandId,
int  param 
)
pure virtual

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

Implemented in MADS::Nebular::ASound9, MADS::MADSV2::Phantom::ASound9, MADS::Nebular::ASound8, MADS::MADSV2::Phantom::ASound5, MADS::Nebular::ASound7, MADS::Nebular::ASound6, MADS::MADSV2::Phantom::ASound4, MADS::Nebular::ASound5, MADS::MADSV2::Phantom::ASound3, MADS::Nebular::ASound4, MADS::Nebular::ASound3, MADS::MADSV2::Phantom::ASound2, MADS::Nebular::ASound2, MADS::MADSV2::Phantom::ASound1, and MADS::Nebular::ASound1.

◆ stop()

virtual int MADS::SoundDriver::stop ( )
pure virtual

Stop all currently playing sounds

Implemented in MADS::Nebular::ASound.

◆ poll()

virtual int MADS::SoundDriver::poll ( )
inlinevirtual

Main poll method to allow sounds to progress

Reimplemented in MADS::Nebular::ASound.

◆ noise()

virtual void MADS::SoundDriver::noise ( )
pure virtual

General noise/note output

Implemented in MADS::Nebular::ASound.

◆ setVolume()

virtual void MADS::SoundDriver::setVolume ( int  volume)
pure virtual

Set the volume

Implemented in MADS::Nebular::ASound.


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