Fix MIDI port offsets.
authorRobin Gareus <robin@gareus.org>
Sat, 30 Sep 2017 03:25:27 +0000 (05:25 +0200)
committerRobin Gareus <robin@gareus.org>
Sat, 30 Sep 2017 03:25:27 +0000 (05:25 +0200)
commit5ada17eba0195d90f0685776251b384efdf5168e
treed42cac8f4d4d75bcca02e2fccd25d644f7f453b6
parent72fb8a5342f19ccf88ff9e59de36c57e3f172a22
Fix MIDI port offsets.

AudioPort::get_audio_buffer() can offset the buffer simply by offsetting
a pointer. This allows to get an offset buffer for a given port.

For MIDI there's no such concept. A method writing to a MIDI buffer
which is backed by a Port can at best offset it by the global port-buffer
offset (static Port::port_offset), but not by the individual target port's
offset.
libs/ardour/midi_port.cc