| @@ -316,7 +316,7 @@ protected: | |||||
| while (! fMidiInEvents.data.isEmpty()) | while (! fMidiInEvents.data.isEmpty()) | ||||
| { | { | ||||
| const RtMidiEvent& midiEvent = fMidiInEvents.data.getLast(true); | |||||
| const RtMidiEvent& midiEvent = fMidiInEvents.data.getFirst(true); | |||||
| EngineEvent* const engineEvent = &kData->rack.in[engineEventIndex++]; | EngineEvent* const engineEvent = &kData->rack.in[engineEventIndex++]; | ||||
| engineEvent->clear(); | engineEvent->clear(); | ||||
| @@ -952,7 +952,7 @@ public: | |||||
| { | { | ||||
| while (midiEventCount < MAX_MIDI_EVENTS && ! kData->extNotes.data.isEmpty()) | while (midiEventCount < MAX_MIDI_EVENTS && ! kData->extNotes.data.isEmpty()) | ||||
| { | { | ||||
| const ExternalMidiNote& note = kData->extNotes.data.getLast(true); // FIXME, should be first | |||||
| const ExternalMidiNote& note = kData->extNotes.data.getFirst(true); | |||||
| CARLA_ASSERT(note.channel >= 0); | CARLA_ASSERT(note.channel >= 0); | ||||
| @@ -1056,7 +1056,7 @@ public: | |||||
| { | { | ||||
| while (fMidiEventCount < MAX_MIDI_EVENTS*2 && ! kData->extNotes.data.isEmpty()) | while (fMidiEventCount < MAX_MIDI_EVENTS*2 && ! kData->extNotes.data.isEmpty()) | ||||
| { | { | ||||
| const ExternalMidiNote& note = kData->extNotes.data.getLast(true); // FIXME, should be first | |||||
| const ExternalMidiNote& note = kData->extNotes.data.getFirst(true); | |||||
| CARLA_ASSERT(note.channel >= 0); | CARLA_ASSERT(note.channel >= 0); | ||||
| @@ -239,7 +239,7 @@ private: | |||||
| if (fCount == 0) | if (fCount == 0) | ||||
| return _retEmpty(); | return _retEmpty(); | ||||
| k_list_head* const entry = first ? fQueue.prev : fQueue.next; | |||||
| k_list_head* const entry = first ? fQueue.next : fQueue.prev; | |||||
| Data* const data = list_entry(entry, Data, siblings); | Data* const data = list_entry(entry, Data, siblings); | ||||
| CARLA_ASSERT(data != nullptr); | CARLA_ASSERT(data != nullptr); | ||||