aboutsummaryrefslogtreecommitdiff
path: root/audio/midiparser.h
diff options
context:
space:
mode:
authorMax Horn2011-03-23 13:04:46 +0100
committerMax Horn2011-03-23 15:25:47 +0100
commitc70c8864f131bfe42437b05d03f77ab198f59247 (patch)
tree233348b1fa140600952e9ee48184b047a0836985 /audio/midiparser.h
parenta539be098d3b5598422e52a65457c68b43042e4a (diff)
downloadscummvm-rg350-c70c8864f131bfe42437b05d03f77ab198f59247.tar.gz
scummvm-rg350-c70c8864f131bfe42437b05d03f77ab198f59247.tar.bz2
scummvm-rg350-c70c8864f131bfe42437b05d03f77ab198f59247.zip
AUDIO: Introduce a new MidiDriver_BASE base class.
The actual MidiDriver derives from it. MidiDriver_BASE only provides the minimal API necessary for transmitting MIDI data. The idea is that this is all MidiParser needs, thus allowing us to simplify the various MidiPlayer classes in our engines.
Diffstat (limited to 'audio/midiparser.h')
-rw-r--r--audio/midiparser.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/audio/midiparser.h b/audio/midiparser.h
index 0b18a19a5b..eeeee981e4 100644
--- a/audio/midiparser.h
+++ b/audio/midiparser.h
@@ -32,7 +32,7 @@
#include "common/endian.h"
class MidiParser;
-class MidiDriver;
+class MidiDriver_BASE;
@@ -273,7 +273,7 @@ protected:
///< Used for "Smart Jump" and MIDI formats that do not include explicit Note Off events.
byte _hanging_notes_count; ///< Count of hanging notes, used to optimize expiration.
- MidiDriver *_driver; ///< The device to which all events will be transmitted.
+ MidiDriver_BASE *_driver; ///< The device to which all events will be transmitted.
uint32 _timer_rate; ///< The time in microseconds between onTimer() calls. Obtained from the MidiDriver.
uint32 _ppqn; ///< Pulses Per Quarter Note. (We refer to "pulses" as "ticks".)
uint32 _tempo; ///< Microseconds per quarter note.
@@ -380,7 +380,7 @@ public:
virtual void unloadMusic();
virtual void property(int prop, int value);
- void setMidiDriver(MidiDriver *driver) { _driver = driver; }
+ void setMidiDriver(MidiDriver_BASE *driver) { _driver = driver; }
void setTimerRate(uint32 rate) { _timer_rate = rate; }
void setTempo(uint32 tempo);
void onTimer();