diff options
Diffstat (limited to 'libs/ardour/disk_reader.cc')
-rw-r--r-- | libs/ardour/disk_reader.cc | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/libs/ardour/disk_reader.cc b/libs/ardour/disk_reader.cc index aa26f2644f..7cdbaf1a0f 100644 --- a/libs/ardour/disk_reader.cc +++ b/libs/ardour/disk_reader.cc @@ -51,8 +51,6 @@ DiskReader::DiskReader (Session& s, string const & str, DiskIOProcessor::Flag f) , overwrite_offset (0) , _pending_overwrite (false) , overwrite_queued (false) - , file_frame (0) - , playback_sample (0) , _monitoring_choice (MonitorDisk) , _gui_feed_buffer (AudioEngine::instance()->raw_buffer_size (DataType::MIDI)) { @@ -143,28 +141,10 @@ DiskReader::state (bool full) int DiskReader::set_state (const XMLNode& node, int version) { - XMLProperty const * prop; - if (DiskIOProcessor::set_state (node, version)) { return -1; } - if ((prop = node.property ("audio-playlist")) == 0) { - return -1; - } - - if (find_and_use_playlist (DataType::AUDIO, prop->value())) { - return -1; - } - - if ((prop = node.property ("midi-playlist")) == 0) { - return -1; - } - - if (find_and_use_playlist (DataType::MIDI, prop->value())) { - return -1; - } - return 0; } @@ -1310,26 +1290,6 @@ DiskReader::get_playback (MidiBuffer& dst, framecnt_t nframes) //cerr << "----------------\n"; } -/** Get the start, end, and length of a location "atomically". - * - * Note: Locations don't get deleted, so all we care about when I say "atomic" - * is that we are always pointing to the same one and using start/length values - * obtained just once. Use this function to achieve this since location being - * a parameter achieves this. - */ -static void -get_location_times(const Location* location, - framepos_t* start, - framepos_t* end, - framepos_t* length) -{ - if (location) { - *start = location->start(); - *end = location->end(); - *length = *end - *start; - } -} - /** @a start is set to the new frame position (TIME) read up to */ int DiskReader::midi_read (framepos_t& start, framecnt_t dur, bool reversed) |