diff options
Diffstat (limited to 'libs/ardour/audioregion.cc')
-rw-r--r-- | libs/ardour/audioregion.cc | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/libs/ardour/audioregion.cc b/libs/ardour/audioregion.cc index 93c229d52f..9b8df441ee 100644 --- a/libs/ardour/audioregion.cc +++ b/libs/ardour/audioregion.cc @@ -433,10 +433,6 @@ AudioRegion::_read_at (const SourceList& srcs, framecnt_t limit, mixdown_buffer += buf_offset; } - if (rops & ReadOpsCount) { - _read_data_count = 0; - } - if (chan_n < n_channels()) { boost::shared_ptr<AudioSource> src = boost::dynamic_pointer_cast<AudioSource> (srcs[chan_n]); @@ -444,10 +440,6 @@ AudioRegion::_read_at (const SourceList& srcs, framecnt_t limit, return 0; /* "read nothing" */ } - if (rops & ReadOpsCount) { - _read_data_count += src->read_data_count(); - } - } else { /* track is N-channel, this region has less channels; silence the ones @@ -465,8 +457,6 @@ AudioRegion::_read_at (const SourceList& srcs, framecnt_t limit, return 0; /* "read nothing" */ } - /* adjust read data count appropriately since this was a duplicate read */ - src->dec_read_data_count (to_read); } else { memset (mixdown_buffer, 0, sizeof (Sample) * cnt); } |