detect buffer "overflow" when delivering immediate events and queue remainder for...
authorPaul Davis <paul@linuxaudiosystems.com>
Sun, 29 May 2011 17:35:21 +0000 (17:35 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Sun, 29 May 2011 17:35:21 +0000 (17:35 +0000)
commit0a9f5423f5b3faede68fe7c384c5fe32db2e23bf
tree196c407bb65b8ead7303c8d9483bb8cec5709990
parent36ccf8304963a7fb9e80ade61df482f122cea39d
detect buffer "overflow" when delivering immediate events and queue remainder for delivery next time (though without actually requeing - just leave ringbuffer ptrs/indexes where they are. required some deep but minor changes in how MidiRingBuffer::read() works, so that we can detect if we're going to be able to deliver an event before we actually read any of its data. Peek FTW!

git-svn-id: svn://localhost/ardour2/branches/3.0@9629 d708f5d6-7413-0410-9779-e7cbd77b26cf
libs/ardour/ardour/midi_ring_buffer.h
libs/ardour/midi_ring_buffer.cc
libs/ardour/midi_track.cc