ScummVM API documentation
MADS::SoundManager Class Reference

Public Member Functions

 SoundManager (MADSEngine *vm, Audio::Mixer *mixer)
 
void init (int sectionNumber)
 
void closeDriver ()
 
void removeDriver ()
 
void setEnabled (bool flag)
 
void pauseNewCommands ()
 
void startQueuedCommands ()
 
void setVolume (int volume)
 
void command (int commandId, int param=0)
 
void stop ()
 
void noise ()
 

Public Attributes

bool _preferRoland
 

Member Function Documentation

◆ init()

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

Initializes the sound driver for a given game section

◆ 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()

void 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: