aboutsummaryrefslogtreecommitdiff
path: root/sound/midiparser.h
diff options
context:
space:
mode:
Diffstat (limited to 'sound/midiparser.h')
-rw-r--r--sound/midiparser.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/sound/midiparser.h b/sound/midiparser.h
index 304a9d9f82..0c0b9cdb8d 100644
--- a/sound/midiparser.h
+++ b/sound/midiparser.h
@@ -283,9 +283,7 @@ protected:
bool _smartJump; //!< Support smart expiration of hanging notes when jumping
bool _centerPitchWheelOnUnload; //!< Center the pitch wheels when unloading a song
- // FIXME: Was 32 here, Kyra tracks use 120(!!!) which seems wrong. this is a hacky
- // workaround until situation is investigated.
- byte * _tracks[120]; //!< Multi-track MIDI formats are supported, up to 120 tracks.
+ byte *_tracks[120]; //!< Multi-track MIDI formats are supported, up to 120 tracks.
byte _num_tracks; //!< Count of total tracks for multi-track MIDI formats. 1 for single-track formats.
byte _active_track; //!< Keeps track of the currently active track, in multi-track formats.
@@ -366,6 +364,9 @@ public:
void setTempo(uint32 tempo);
void onTimer();
+ bool isPlaying() const { return (_position._play_pos != 0); }
+ void stopPlaying();
+
bool setTrack(int track);
bool jumpToTick(uint32 tick, bool fireEvents = false);