projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
MIDI bounce.
[ardour.git]
/
libs
/
ardour
/
midi_buffer.cc
diff --git
a/libs/ardour/midi_buffer.cc
b/libs/ardour/midi_buffer.cc
index 7f79262b2fdd35a5bea3910fe78a767a3fb200cb..ee6bd13d51467a4ed1932769ad9809fa08d33e56 100644
(file)
--- a/
libs/ardour/midi_buffer.cc
+++ b/
libs/ardour/midi_buffer.cc
@@
-250,6
+250,13
@@
MidiBuffer::insert_event(const Evoral::MIDIEvent<TimeType>& ev)
return true;
}
return true;
}
+uint32_t
+MidiBuffer::write(TimeType time, Evoral::EventType type, uint32_t size, const uint8_t* buf)
+{
+ insert_event(Evoral::MIDIEvent<TimeType>(type, time, size, const_cast<uint8_t*>(buf)));
+ return size;
+}
+
/** Reserve space for a new event in the buffer.
*
* This call is for copying MIDI directly into the buffer, the data location
/** Reserve space for a new event in the buffer.
*
* This call is for copying MIDI directly into the buffer, the data location