ScummVM API documentation
MM::Shared::Xeen::Sound Class Reference
Inheritance diagram for MM::Shared::Xeen::Sound:
MM::MM1::Sound

Public Member Functions

 Sound (Audio::Mixer *mixer)
 
void playFX (uint effectId)
 
void stopFX (bool force=false)
 
int songCommand (uint commandId, byte musicVolume=0, byte sfxVolume=0)
 
void stopSong ()
 
void setMusicPercent (byte percent)
 
void playSong (Common::SeekableReadStream &stream)
 
void playSong (const Common::Path &name, int param=0)
 
bool isMusicPlaying () const
 
void setMusicOn (bool isOn)
 
void setFxOn (bool isOn)
 
void updateSoundSettings ()
 
void stopAllAudio ()
 
void playSound (Common::SeekableReadStream &s, int unused=0)
 
void playSound (const Common::Path &name, int unused=0)
 
void stopSound ()
 
bool isSoundPlaying () const
 
void playVoice (const Common::Path &name)
 

Public Attributes

bool _fxOn
 
bool _musicOn
 
Common::Path _currentMusic
 
int _musicSide
 
bool _subtitles
 
MusicType musicType
 

Member Function Documentation

◆ playFX()

void MM::Shared::Xeen::Sound::playFX ( uint  effectId)

Starts an effect playing

◆ stopFX()

void MM::Shared::Xeen::Sound::stopFX ( bool  force = false)

Stops any currently playing FX

◆ songCommand()

int MM::Shared::Xeen::Sound::songCommand ( uint  commandId,
byte  musicVolume = 0,
byte  sfxVolume = 0 
)

Executes special music command

◆ stopSong()

void MM::Shared::Xeen::Sound::stopSong ( )
inline

Stops any currently playing music

◆ setMusicPercent()

void MM::Shared::Xeen::Sound::setMusicPercent ( byte  percent)

Sets the in-game music volume percent. This is separate from the ScummVM volume

◆ playSong() [1/2]

void MM::Shared::Xeen::Sound::playSong ( Common::SeekableReadStream stream)

Plays a song

◆ playSong() [2/2]

void MM::Shared::Xeen::Sound::playSong ( const Common::Path name,
int  param = 0 
)

Plays a song

◆ isMusicPlaying()

bool MM::Shared::Xeen::Sound::isMusicPlaying ( ) const

Returns true if music is playing

◆ setMusicOn()

void MM::Shared::Xeen::Sound::setMusicOn ( bool  isOn)

Sets whether music is on

◆ setFxOn()

void MM::Shared::Xeen::Sound::setFxOn ( bool  isOn)

Sets whether sound effects is on

◆ updateSoundSettings()

void MM::Shared::Xeen::Sound::updateSoundSettings ( )

Called to reload sound settings

◆ stopAllAudio()

void MM::Shared::Xeen::Sound::stopAllAudio ( )

Stops all playing music, FX, and sound samples

◆ playSound() [1/2]

void MM::Shared::Xeen::Sound::playSound ( Common::SeekableReadStream s,
int  unused = 0 
)

Play a given sound

◆ playSound() [2/2]

void MM::Shared::Xeen::Sound::playSound ( const Common::Path name,
int  unused = 0 
)

Play a given sound

◆ stopSound()

void MM::Shared::Xeen::Sound::stopSound ( )

Stop playing a sound loaded from a .m file

Remarks
In the original, passing 1 to playSound stopped the sound

◆ isSoundPlaying()

bool MM::Shared::Xeen::Sound::isSoundPlaying ( ) const

Returns true if a sound file is currently playing

Remarks
In the original, passing 0 to playSound returned play status

◆ playVoice()

void MM::Shared::Xeen::Sound::playVoice ( const Common::Path name)

Play a given voice file


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