From e9dd575ca573e7bfc1226d4d7edfbfe3de8debd4 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 27 Jul 2017 12:32:10 -0400 Subject: remove all code related to "silent roll" concept. some debug output added --- libs/ardour/track.cc | 33 --------------------------------- 1 file changed, 33 deletions(-) (limited to 'libs/ardour/track.cc') diff --git a/libs/ardour/track.cc b/libs/ardour/track.cc index 669a30190e..6f8d49d532 100644 --- a/libs/ardour/track.cc +++ b/libs/ardour/track.cc @@ -556,39 +556,6 @@ Track::no_roll (pframes_t nframes, framepos_t start_frame, framepos_t end_frame, return 0; } -int -Track::silent_roll (pframes_t nframes, framepos_t /*start_frame*/, framepos_t /*end_frame*/, bool& need_butler) -{ - Glib::Threads::RWLock::ReaderLock lm (_processor_lock, Glib::Threads::TRY_LOCK); - if (!lm.locked()) { - // XXX DISK reader needs to seek ahead the correct distance ?? OR DOES IT ? - //framecnt_t playback_distance = _disk_reader->calculate_playback_distance(nframes); - //if (can_internal_playback_seek(playback_distance)) { - // internal_playback_seek(playback_distance); - //} - return 0; - } - - if (n_outputs().n_total() == 0 && _processors.empty()) { - return 0; - } - - if (!_active) { - silence (nframes); - return 0; - } - - _silent = true; - _amp->apply_gain_automation(false); - - silence (nframes); - flush_processor_buffers_locked (nframes); - - //BufferSet& bufs (_session.get_route_buffers (n_process_buffers(), true)); - // XXXX DISKWRITER/READER ADVANCE, SET need_butler - return 0; -} - boost::shared_ptr Track::playlist () { -- cgit v1.2.3