/*
- Copyright (C) 2013 Gorobchenko Dmytro
+ Copyright (C) 2013 Waves Audio Ltd.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
{
}
+struct MidiEventSorter {
+ bool operator() (const WavesMidiEvent* a, const WavesMidiEvent* b) {
+ return *a < *b;
+ }
+};
+
void*
WavesMidiPort::get_buffer (pframes_t nframes)
{
target += ((const WavesMidiPort*)*cit)->const_buffer ();
}while((++cit) != get_connections ().end ());
- std::sort (target.begin (), target.end ());
+ std::sort (target.begin (), target.end (), MidiEventSorter());
}
}
WavesMidiPort::_wipe_buffer()
{
_waves_midi_buffer.clear ();
-}
\ No newline at end of file
+}