diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2009-06-16 14:58:33 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2009-06-16 14:58:33 +0000 |
commit | 86f24d20e1616ffaafc97de65db49fd6a91270f8 (patch) | |
tree | 17f4ac15f4ec6124e82482624f57ed2ceb8f81ca /libs/ardour/midi_buffer.cc | |
parent | 9c8ee46c764f036707f45ebfa8f6696a9a6e56c6 (diff) |
first pass (ok, third really) at internal send+return - audio routing inside ardour without JACK. lots still to do, but at least the obvious works
git-svn-id: svn://localhost/ardour2/branches/3.0@5202 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/midi_buffer.cc')
-rw-r--r-- | libs/ardour/midi_buffer.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libs/ardour/midi_buffer.cc b/libs/ardour/midi_buffer.cc index bce47411cd..887545c662 100644 --- a/libs/ardour/midi_buffer.cc +++ b/libs/ardour/midi_buffer.cc @@ -99,6 +99,17 @@ MidiBuffer::read_from (const Buffer& src, nframes_t nframes, nframes_t dst_offse _silent = src.silent(); } +void +MidiBuffer::merge_from (const Buffer& src, nframes_t nframes, nframes_t dst_offset, nframes_t src_offset) +{ + const MidiBuffer* mbuf = dynamic_cast<const MidiBuffer*>(&src); + assert (mbuf); + assert (mbuf != this); + + /* XXX use nframes, and possible offsets */ + merge_in_place (*mbuf); +} + /** Push an event into the buffer. * * Note that the raw MIDI pointed to by ev will be COPIED and unmodified. |