ScummVM API documentation
MADS::SoundDriver Class Referenceabstract
Inheritance diagram for MADS::SoundDriver:
MADS::MADSV2::Dragonsphere::ASound MADS::MADSV2::Phantom::ASound MADS::Nebular::ASound MADS::MADSV2::Dragonsphere::ASound1 MADS::MADSV2::Dragonsphere::ASound2 MADS::MADSV2::Dragonsphere::ASound3 MADS::MADSV2::Dragonsphere::ASound4 MADS::MADSV2::Dragonsphere::ASound5 MADS::MADSV2::Dragonsphere::ASound6 MADS::MADSV2::Dragonsphere::ASound9 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::RexASound

Public Member Functions

 SoundDriver (Audio::Mixer *mixer, OPL::OPL *opl, const Common::Path &filename, int dataOffset, int dataSize)
 
virtual int command (int commandId, int param)=0
 
virtual int stop ()=0
 
virtual int poll ()=0
 
virtual void noise ()=0
 
virtual void setVolume (int volume)=0
 

Protected Member Functions

Common::MemoryReadStream getDataStream (int offset) const
 

Protected Attributes

Audio::Mixer_mixer
 
OPL::OPL_opl
 
Common::Array< byte > _soundData
 
Common::Mutex _driverMutex
 

Member Function Documentation

◆ getDataStream()

Common::MemoryReadStream MADS::SoundDriver::getDataStream ( int  offset) const
inlineprotected

Gets a stream starting at a given offset in the loaded sound data

◆ command()

◆ stop()

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

Stop all currently playing sounds

Implemented in MADS::MADSV2::Dragonsphere::ASound, MADS::MADSV2::Phantom::ASound, and MADS::Nebular::ASound.

◆ poll()

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

Main poll method to allow sounds to progress

Implemented in MADS::MADSV2::Dragonsphere::ASound, MADS::MADSV2::Phantom::ASound, and MADS::Nebular::ASound.

◆ noise()

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

◆ setVolume()

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

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