From f92df4c6aab9ffb06ed241ae22779bdf11dc540c Mon Sep 17 00:00:00 2001 From: Alyssa Milburn Date: Mon, 27 Jan 2014 00:13:58 +0100 Subject: 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. --- audio/midiparser.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'audio/midiparser.h') 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); -- cgit v1.2.3