From 9a8deb6ab4528ddd6400bf7b8192e55b694c13e1 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 31 Jul 2013 14:21:40 +0200 Subject: [PATCH] another amend to 00f26394a9 --- libs/ardour/midi_track.cc | 2 +- libs/ardour/process_thread.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/ardour/midi_track.cc b/libs/ardour/midi_track.cc index c7768c7249..90b866ca92 100644 --- a/libs/ardour/midi_track.cc +++ b/libs/ardour/midi_track.cc @@ -353,7 +353,7 @@ MidiTrack::roll (pframes_t nframes, framepos_t start_frame, framepos_t end_frame return dret; } - BufferSet& bufs = _session.get_scratch_buffers (n_process_buffers()); + BufferSet& bufs = _session.get_route_buffers (n_process_buffers()); fill_buffers_with_input (bufs, _input, nframes); diff --git a/libs/ardour/process_thread.cc b/libs/ardour/process_thread.cc index 4c9789f37a..5d8d6f34fd 100644 --- a/libs/ardour/process_thread.cc +++ b/libs/ardour/process_thread.cc @@ -126,7 +126,7 @@ ProcessThread::get_route_buffers (ChanCount count, bool silence) if (silence) { for (DataType::iterator t = DataType::begin(); t != DataType::end(); ++t) { - for (size_t i= 0; i < count.get(*t); ++i) { + for (uint32_t i = 0; i < sb->count().get(*t); ++i) { sb->get(*t, i).clear(); } }