From 00a4ad712c2d5ac73f04b0f43906590b24a22fb6 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 31 Oct 2017 18:32:26 +0100 Subject: Move Loop Location to Processors The processors will becomes responsible to know about loop-positions and map latency-compensated start_sample, end_sample into the loop-range as needed. --- libs/ardour/disk_io.cc | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'libs/ardour/disk_io.cc') diff --git a/libs/ardour/disk_io.cc b/libs/ardour/disk_io.cc index 1872c81ea9..c43e42c315 100644 --- a/libs/ardour/disk_io.cc +++ b/libs/ardour/disk_io.cc @@ -52,7 +52,6 @@ DiskIOProcessor::DiskIOProcessor (Session& s, string const & str, Flag f) , i_am_the_modifier (false) , _seek_required (false) , _slaved (false) - , loop_location (0) , in_set_state (false) , playback_sample (0) , _need_butler (false) @@ -182,22 +181,6 @@ DiskIOProcessor::set_block_size (pframes_t nframes) return 0; } -int -DiskIOProcessor::set_loop (Location *location) -{ - if (location) { - if (location->start() >= location->end()) { - error << string_compose(_("Location \"%1\" not valid for track loop (start >= end)"), location->name()) << endl; - return -1; - } - } - - loop_location = location; - - LoopSet (location); /* EMIT SIGNAL */ - return 0; -} - void DiskIOProcessor::non_realtime_locate (samplepos_t location) { -- cgit v1.2.3