summaryrefslogtreecommitdiff
path: root/libs/ardour/disk_io.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2017-10-02 12:36:52 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2017-10-02 12:43:34 -0400
commit275756e96adbf9999c370011e8411d0a53c0700f (patch)
tree8a7edfa4a458809b80b7a264dd1726c02b9728bc /libs/ardour/disk_io.cc
parent21534494003c7922b46a2d37f3fb65a29fdd3e55 (diff)
remove leftover cruft related to wrap buffers from DiskIOProcessor
Diffstat (limited to 'libs/ardour/disk_io.cc')
-rw-r--r--libs/ardour/disk_io.cc18
1 files changed, 1 insertions, 17 deletions
diff --git a/libs/ardour/disk_io.cc b/libs/ardour/disk_io.cc
index 47f3117d05..147a5b83ba 100644
--- a/libs/ardour/disk_io.cc
+++ b/libs/ardour/disk_io.cc
@@ -50,14 +50,11 @@ DiskIOProcessor::DiskIOProcessor (Session& s, string const & str, Flag f)
: Processor (s, str)
, _flags (f)
, i_am_the_modifier (false)
- , _buffer_reallocation_required (false)
, _seek_required (false)
, _slaved (false)
, loop_location (0)
, in_set_state (false)
, playback_sample (0)
- , wrap_buffer_size (0)
- , speed_buffer_size (0)
, _need_butler (false)
, channels (new ChannelList)
, _midi_buf (new MidiRingBuffer<samplepos_t> (s.butler()->midi_diskstream_buffer_size()))
@@ -214,10 +211,6 @@ DiskIOProcessor::non_realtime_locate (samplepos_t location)
void
DiskIOProcessor::non_realtime_speed_change ()
{
- if (_buffer_reallocation_required) {
- _buffer_reallocation_required = false;
- }
-
if (_seek_required) {
seek (_session.transport_sample(), true);
_seek_required = false;
@@ -227,16 +220,7 @@ DiskIOProcessor::non_realtime_speed_change ()
bool
DiskIOProcessor::realtime_speed_change ()
{
- const samplecnt_t required_wrap_size = (samplecnt_t) ceil (_session.get_block_size() * fabs (_session.transport_speed())) + 2;
- bool _buffer_reallocation_required;
-
- if (required_wrap_size > wrap_buffer_size) {
- _buffer_reallocation_required = true;
- } else {
- _buffer_reallocation_required = false;
- }
-
- return _buffer_reallocation_required;
+ return true;
}
int