ScummVM API documentation
StarTrek::Sound Class Reference

Public Member Functions

 Sound (StarTrekEngine *vm)
 
void clearAllMidiSlots ()
 
void playMidiTrack (MidiTracks track)
 
void playMidiTrackInSlot (int slot, MidiTracks track)
 
bool isMidiPlaying ()
 
void loadMusicFile (const Common::String &baseSoundName)
 
void playMidiMusicTracks (MidiTracks startTrack, MidiLoopType loopType=kLoopTypeNone)
 
void playVoc (const Common::String &baseSoundName)
 
void playSpeech (const Common::String &basename)
 
void stopAllVocSounds ()
 
void stopPlayingSpeech ()
 
void playSoundEffectIndex (SoundEffects index)
 
void setMusicEnabled (bool enable)
 
void setSfxEnabled (bool enable)
 
void toggleMusic ()
 
void toggleSfx ()
 
void checkLoopMusic ()
 

Public Attributes

Common::String _loopingAudioName
 
Common::String _loadedMidiFilename
 
MidiTracks _loopingMidiTrack
 

Member Function Documentation

◆ playMidiTrack()

void StarTrek::Sound::playMidiTrack ( MidiTracks  track)

Plays a midi track as a sound effect (one of midi slots 1-7)


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