mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-08 14:45:43 +01:00
fix wavesbackend midi timing
This commit is contained in:
parent
289b783597
commit
da481b2930
1 changed files with 7 additions and 1 deletions
|
|
@ -29,6 +29,12 @@ WavesMidiPort::WavesMidiPort (const std::string& port_name, PortFlags flags)
|
|||
{
|
||||
}
|
||||
|
||||
struct MidiEventSorter {
|
||||
bool operator() (const WavesMidiEvent* a, const WavesMidiEvent* b) {
|
||||
return *a < *b;
|
||||
}
|
||||
};
|
||||
|
||||
void*
|
||||
WavesMidiPort::get_buffer (pframes_t nframes)
|
||||
{
|
||||
|
|
@ -47,7 +53,7 @@ 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());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue