From 0b572cdd84151335594965a3f0ed16f1665dfa56 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 13 Aug 2006 03:40:04 +0000 Subject: More signal path cleanup, IO now has one deliver_output function that should do the reasonable thing in all cases. Including deliver MIDI. You can now create a MIDI Track, run some MIDI through it, and toggle the mute button on and off, hearing either silence or a large amount of stuck notes depending on your luck. Woooo. git-svn-id: svn://localhost/ardour2/branches/midi@818 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/buffer.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libs/ardour/buffer.cc') diff --git a/libs/ardour/buffer.cc b/libs/ardour/buffer.cc index a2090d7258..85b9317f78 100644 --- a/libs/ardour/buffer.cc +++ b/libs/ardour/buffer.cc @@ -89,8 +89,8 @@ void MidiBuffer::read_from(const Buffer& src, jack_nframes_t nframes, jack_nframes_t offset) { // FIXME: offsets? param semantics? - throw; - assert(src.type() == _type == DataType::MIDI); + assert(src.type() == _type); + assert(src.type() == DataType::MIDI); assert(offset == 0); MidiBuffer& msrc = (MidiBuffer&)src; _size = 0; -- cgit v1.2.3