aboutsummaryrefslogtreecommitdiff
path: root/audio/midiparser.h
diff options
context:
space:
mode:
authorAlyssa Milburn2014-01-27 00:13:58 +0100
committerAlyssa Milburn2014-01-27 00:20:50 +0100
commitf92df4c6aab9ffb06ed241ae22779bdf11dc540c (patch)
tree4849c54c3be4ba2fc597ddf6e51cf7fa2fef2419 /audio/midiparser.h
parent83ce4cfb5e72975805875000200e8ab2ff2c8319 (diff)
downloadscummvm-rg350-f92df4c6aab9ffb06ed241ae22779bdf11dc540c.tar.gz
scummvm-rg350-f92df4c6aab9ffb06ed241ae22779bdf11dc540c.tar.bz2
scummvm-rg350-f92df4c6aab9ffb06ed241ae22779bdf11dc540c.zip
Revert "AUDIO: Simplify MidiTracker::processEvent return value"
MI2 deletes the parser object(!) so we can't access any member variables here. Thanks to athrxx for finding this. This reverts commit 86c2fe47e04449602e4c005fa0a9c183bc8bba39 and adds a comment explaining why.
Diffstat (limited to 'audio/midiparser.h')
-rw-r--r--audio/midiparser.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/midiparser.h b/audio/midiparser.h
index 05d0cbe1db..9499d01512 100644
--- a/audio/midiparser.h
+++ b/audio/midiparser.h
@@ -294,7 +294,7 @@ protected:
virtual void resetTracking();
virtual void allNotesOff();
virtual void parseNextEvent(EventInfo &info) = 0;
- virtual void processEvent(const EventInfo &info, bool fireEvents = true);
+ virtual bool processEvent(const EventInfo &info, bool fireEvents = true);
void activeNote(byte channel, byte note, bool active);
void hangingNote(byte channel, byte note, uint32 ticksLeft, bool recycle = true);