detect buffer "overflow" when delivering immediate events and queue remainder for...
[ardour.git] / libs / ardour / ardour / midi_ring_buffer.h
index 309f03280de3cef99fe653da430390f56a45730e..567f375bc3f9a6f68b0ddec5580b0edbd29cd2a4 100644 (file)
@@ -50,7 +50,7 @@ public:
        inline bool read_prefix(T* time, Evoral::EventType* type, uint32_t* size);
        inline bool read_contents(uint32_t size, uint8_t* buf);
 
-       size_t read(MidiBuffer& dst, framepos_t start, framepos_t end, framecnt_t offset=0);
+       size_t read(MidiBuffer& dst, framepos_t start, framepos_t end, framecnt_t offset=0, bool stop_on_overflow_in_destination=false);
        void dump(std::ostream& dst);
 
        /** Set the channel filtering mode.