ScummVM API documentation
TwinE::Music Class Reference

Public Member Functions

 Music (TwinEEngine *engine)
 
void musicVolume (int32 volume)
 
bool playCdTrack (int32 track)
 
bool playMusic (int32 track)
 
bool playMidiFile (int32 midiIdx)
 
void playAllMusic (int track)
 
void stopMusicMidi ()
 
bool initCdrom ()
 
void stopMusic ()
 
bool isMidiPlaying () const
 
int32 getMusicCD ()
 

Public Attributes

int32 _nextMusic = -1
 
int32 _nextMusicTimer
 
bool _stopLastMusic = false
 

Member Function Documentation

◆ musicVolume()

void TwinE::Music::musicVolume ( int32  volume)

Music volume

Parameters
currentvolume number

◆ playCdTrack()

bool TwinE::Music::playCdTrack ( int32  track)

Play CD music

Parameters
tracktrack number to play

◆ playMusic()

bool TwinE::Music::playMusic ( int32  track)

Generic play music, according with settings it plays CD or high quality sounds instead

Parameters
tracktrack number to play

◆ playMidiFile()

bool TwinE::Music::playMidiFile ( int32  midiIdx)

Play MIDI music

Parameters
midiIdxmusic index under mini_mi_win.hqr
Note
valid indices for lba1 are [1-32]

◆ stopMusicMidi()

void TwinE::Music::stopMusicMidi ( )

Stop MIDI music

◆ initCdrom()

bool TwinE::Music::initCdrom ( )

Initialize CD-Rom

◆ stopMusic()

void TwinE::Music::stopMusic ( )

Stop MIDI and Track music


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