diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2019-10-15 16:57:23 -0600 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2019-11-02 16:32:18 -0600 |
commit | e87e0ec0283674c3e649c1218822fa03c3fc9016 (patch) | |
tree | 79027f00faa4c49231bb81ae275d89fe77f02e05 /libs/ardour/midi_buffer.cc | |
parent | 67beff22ceaf2cdcbab92a978e8afc35a9751762 (diff) |
add a MidiStateTracker to DiskReader and use to handle transport stop note resolving
Diffstat (limited to 'libs/ardour/midi_buffer.cc')
-rw-r--r-- | libs/ardour/midi_buffer.cc | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/libs/ardour/midi_buffer.cc b/libs/ardour/midi_buffer.cc index 9196d84de5..0a36c84e49 100644 --- a/libs/ardour/midi_buffer.cc +++ b/libs/ardour/midi_buffer.cc @@ -288,20 +288,6 @@ MidiBuffer::write(TimeType time, Evoral::EventType type, uint32_t size, const ui return size; } -uint32_t -MidiBuffer::append(TimeType time, Evoral::EventType type, uint32_t size, const uint8_t* buf) -{ - const size_t bytes_to_merge = sizeof(TimeType) + size; - - if (_size + bytes_to_merge >= _capacity) { - resize (_capacity + 8192); - } - - return push_back (time, size, buf); -} - - - /** Reserve space for a new event in the buffer. * * This call is for copying MIDI directly into the buffer, the data location |