aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlyssa Milburn2012-09-07 22:22:43 +0200
committerAlyssa Milburn2012-09-07 22:22:43 +0200
commit763c052c67137079ee81f70288375cbb238f8d68 (patch)
tree57bc2a648ef9ec6f1df704804afda2b552c62027
parent05fbc2876748acecd17f61e3ccec2634edd03a0c (diff)
downloadscummvm-rg350-763c052c67137079ee81f70288375cbb238f8d68.tar.gz
scummvm-rg350-763c052c67137079ee81f70288375cbb238f8d68.tar.bz2
scummvm-rg350-763c052c67137079ee81f70288375cbb238f8d68.zip
AUDIO: Remove unused members of MidiParser_XMIDI.
-rw-r--r--audio/midiparser_xmidi.cpp15
1 files changed, 2 insertions, 13 deletions
diff --git a/audio/midiparser_xmidi.cpp b/audio/midiparser_xmidi.cpp
index 85491faaf8..f0b2d0c6fc 100644
--- a/audio/midiparser_xmidi.cpp
+++ b/audio/midiparser_xmidi.cpp
@@ -32,9 +32,6 @@
*/
class MidiParser_XMIDI : public MidiParser {
protected:
- NoteTimer _notes_cache[32];
- uint32 _inserted_delta; // Track simulated deltas for note-off events
-
struct Loop {
byte *pos;
byte repeat;
@@ -48,11 +45,10 @@ protected:
protected:
uint32 readVLQ2(byte * &data);
- void resetTracking();
void parseNextEvent(EventInfo &info);
public:
- MidiParser_XMIDI(XMidiCallbackProc proc, void *data) : _inserted_delta(0), _callbackProc(proc), _callbackData(data) {}
+ MidiParser_XMIDI(XMidiCallbackProc proc, void *data) : _callbackProc(proc), _callbackData(data) {}
~MidiParser_XMIDI() { }
bool loadMusic(byte *data, uint32 size);
@@ -70,10 +66,9 @@ uint32 MidiParser_XMIDI::readVLQ2(byte * &pos) {
void MidiParser_XMIDI::parseNextEvent(EventInfo &info) {
info.start = _position._play_pos;
- info.delta = readVLQ2(_position._play_pos) - _inserted_delta;
+ info.delta = readVLQ2(_position._play_pos);
// Process the next event.
- _inserted_delta = 0;
info.event = *(_position._play_pos++);
switch (info.event >> 4) {
case 0x9: // Note On
@@ -349,7 +344,6 @@ bool MidiParser_XMIDI::loadMusic(byte *data, uint32 size) {
_ppqn = 60;
resetTracking();
setTempo(500000);
- _inserted_delta = 0;
setTrack(0);
return true;
}
@@ -357,11 +351,6 @@ bool MidiParser_XMIDI::loadMusic(byte *data, uint32 size) {
return false;
}
-void MidiParser_XMIDI::resetTracking() {
- MidiParser::resetTracking();
- _inserted_delta = 0;
-}
-
void MidiParser::defaultXMidiCallback(byte eventData, void *data) {
warning("MidiParser: defaultXMidiCallback(%d)", eventData);
}