-MidiTrack::process_output_buffers (BufferSet& bufs,
- nframes_t start_frame, nframes_t end_frame,
- nframes_t nframes, nframes_t offset, bool with_redirects, int declick,
- bool meter)
-{
- /* There's no such thing as a MIDI bus for the time being, to avoid diverging from trunk
- * too much until the SoC settles down. We'll do all the MIDI route work here for now,
- * but the long-term goal is to have Route::process_output_buffers handle everything */
-
- // Run all redirects
- if (with_redirects) {
- Glib::RWLock::ReaderLock rm (redirect_lock, Glib::TRY_LOCK);
- if (rm.locked()) {
- for (RedirectList::iterator i = _redirects.begin(); i != _redirects.end(); ++i) {
- (*i)->run (bufs, start_frame, end_frame, nframes, offset);
- }
- }
- }
-
- // Main output stage
- if (muted()) {
- IO::silence(nframes, offset);
- } else {
- deliver_output(bufs, start_frame, end_frame, nframes, offset);
- }
-}
-
-int
-MidiTrack::set_name (string str, void *src)