|
| MidiPlayer (AGOSEngine *vm) |
|
int | open () |
|
void | load (Common::SeekableReadStream *in, int32 size=-1, bool sfx=false) |
|
void | play (int track=0, bool sfx=false, bool sfxUsesRhythm=false, bool queued=false) |
|
bool | usesMT32Data () const |
|
bool | hasMidiSfx () const |
|
void | setLoop (bool loop) |
|
void | setSimon2Remapping (bool remap) |
|
void | queueTrack (int track, bool loop) |
|
bool | isPlaying (bool checkQueued=false) |
|
void | stop (bool sfx=false) |
|
void | pause (bool b) |
|
void | fadeOut () |
|
void | syncSoundSettings () |
|
|
static void | onTimer (void *data) |
|
|
static const byte | SIMON2_TRACK10_GM_MT32_INSTRUMENT_REMAPPING [] |
|
◆ play()
void AGOS::MidiPlayer::play |
( |
int |
track = 0 , |
|
|
bool |
sfx = false , |
|
|
bool |
sfxUsesRhythm = false , |
|
|
bool |
queued = false |
|
) |
| |
Plays the currently loaded music or SFX data. If the loaded data has multiple tracks, specify track to select the track to play.
- Parameters
-
track | The track to play. Default 0. |
sfx | True if the SFX data should be played, otherwise the loaded music data will be played. Default false. |
sfxUsesRhythm | True if the sound effect uses OPL rhythm instruments. Default false. |
queued | True if this track was queued; false if it was played directly. Default false. |
The documentation for this class was generated from the following file: