ScummVM API documentation
MADS::SoundManager Class Referenceabstract
Inheritance diagram for MADS::SoundManager:
MADS::MADSV2::Dragonsphere::DragonSoundManager MADS::MADSV2::Forest::ForestSoundManager MADS::MADSV2::Phantom::PhantomSoundManager MADS::Nebular::RexSoundManager

Public Member Functions

 SoundManager (Audio::Mixer *mixer, bool &soundFlag)
 
virtual void validate ()=0
 
void init (int sectionNumber)
 
bool isLoaded () const
 
void closeDriver ()
 
void removeDriver ()
 
void setEnabled (bool flag)
 
void pauseNewCommands ()
 
void startQueuedCommands ()
 
void setVolume (int volume)
 
int command (int commandId, int param=0)
 
void stop ()
 
void noise ()
 

Public Attributes

bool _preferRoland
 

Protected Member Functions

virtual void loadDriver (int sectionNum)=0
 

Protected Attributes

Audio::Mixer_mixer
 
bool & _soundFlag
 
OPL::OPL_opl = nullptr
 
SoundDriver_driver = nullptr
 
bool _pollSoundEnabled = false
 
bool _soundPollFlag = false
 
bool _newSoundsPaused = false
 
Common::Queue< int > _queuedCommands
 
int _masterVolume = 255
 

Member Function Documentation

◆ loadDriver()

virtual void MADS::SoundManager::loadDriver ( int  sectionNum)
protectedpure virtual

Load the particular section sound handler

Parameters
sectionNumSection number

Implemented in MADS::MADSV2::Dragonsphere::DragonSoundManager, MADS::MADSV2::Forest::ForestSoundManager, MADS::MADSV2::Phantom::PhantomSoundManager, and MADS::Nebular::RexSoundManager.

◆ init()

void MADS::SoundManager::init ( int  sectionNumber)

Initializes the sound driver for a given game section

◆ isLoaded()

bool MADS::SoundManager::isLoaded ( ) const
inline

Returns true if a driver is loaded

◆ closeDriver()

void MADS::SoundManager::closeDriver ( )

Stop any currently active sound and remove the driver

◆ removeDriver()

void MADS::SoundManager::removeDriver ( )

Remove the driver

◆ setEnabled()

void MADS::SoundManager::setEnabled ( bool  flag)

Sets the enabled status of the sound True if sound should be enabled

◆ pauseNewCommands()

void MADS::SoundManager::pauseNewCommands ( )

Temporarily pause the playback of any new sound commands

◆ startQueuedCommands()

void MADS::SoundManager::startQueuedCommands ( )

Stop queueing sound commands, and execute any previously queued ones

◆ setVolume()

void MADS::SoundManager::setVolume ( int  volume)

Set the master volume

◆ command()

int MADS::SoundManager::command ( int  commandId,
int  param = 0 
)

Executes a command on the sound driver

Parameters
commandidCommand Id to execute
paramOptional paramater specific to a few commands

◆ stop()

void MADS::SoundManager::stop ( )

Stops any currently playing sound

◆ noise()

void MADS::SoundManager::noise ( )

Noise Some sort of random noise generation?


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