diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2009-09-21 15:43:11 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2009-09-21 15:43:11 +0000 |
commit | ddf532a655ea285287d9f0f0419c97cfa2fbb827 (patch) | |
tree | a30a718f0b8a4b0ee0da7ec23dfaf5a7efbbc34d /libs/ardour/midi_ring_buffer.cc | |
parent | 378a90b345d6eca50e8ef8fab6ccd102688e6614 (diff) |
(full commit): fix MIDI playback by not writing into the playback buffer from MidiDiskStream::process() unless recording. This has a negative impact on "monitoring" MIDI, but that needs a different, somewhat more expansive solution anyway
git-svn-id: svn://localhost/ardour2/branches/3.0@5685 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/midi_ring_buffer.cc')
-rw-r--r-- | libs/ardour/midi_ring_buffer.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/ardour/midi_ring_buffer.cc b/libs/ardour/midi_ring_buffer.cc index 5fcd3e8298..e5e01cc8cb 100644 --- a/libs/ardour/midi_ring_buffer.cc +++ b/libs/ardour/midi_ring_buffer.cc @@ -80,7 +80,7 @@ MidiRingBuffer<T>::read(MidiBuffer& dst, nframes_t start, nframes_t end, nframes if (is_channel_event(status) && get_channel_mode() == FilterChannels) { const uint8_t channel = status & 0x0F; if (!(get_channel_mask() & (1L << channel))) { - //cerr << "MRB skipping event due to channel mask" << endl; + // cerr << "MRB skipping event due to channel mask" << endl; this->skip(ev_size); // Advance read pointer to next event continue; } @@ -93,7 +93,7 @@ MidiRingBuffer<T>::read(MidiBuffer& dst, nframes_t start, nframes_t end, nframes // write the timestamp to address (write_loc - 1) uint8_t* write_loc = dst.reserve(ev_time, ev_size); if (write_loc == NULL) { - cerr << "MRB: Unable to reserve space in buffer, event skipped"; + // cerr << "MRB: Unable to reserve space in buffer, event skipped"; continue; } |