summaryrefslogtreecommitdiff
path: root/src/lib/external_audio_decoder.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-03-06 00:51:44 +0000
committerCarl Hetherington <cth@carlh.net>2013-03-06 00:51:44 +0000
commit422341d1cb6bc8cbb6be76eac239c40cb4061c79 (patch)
tree1a4193e699024bd53f5ef2da5d9958aa74ffbd06 /src/lib/external_audio_decoder.cc
parent18614dda0d53b713ace5ad1df57298d049dba87f (diff)
Revert "Split timed from untimed sinks / sources. Should produce same output, in theory."
This reverts commit 18614dda0d53b713ace5ad1df57298d049dba87f.
Diffstat (limited to 'src/lib/external_audio_decoder.cc')
-rw-r--r--src/lib/external_audio_decoder.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/external_audio_decoder.cc b/src/lib/external_audio_decoder.cc
index 50e5852c5..1248b5a3b 100644
--- a/src/lib/external_audio_decoder.cc
+++ b/src/lib/external_audio_decoder.cc
@@ -115,7 +115,6 @@ ExternalAudioDecoder::pass ()
sf_count_t const block = _audio_stream->sample_rate() / 2;
shared_ptr<AudioBuffers> audio (new AudioBuffers (_audio_stream->channels(), block));
- sf_count_t done = 0;
while (frames > 0) {
sf_count_t const this_time = min (block, frames);
for (size_t i = 0; i < sndfiles.size(); ++i) {
@@ -127,8 +126,7 @@ ExternalAudioDecoder::pass ()
}
audio->set_frames (this_time);
- Audio (audio, double(done) / _audio_stream->sample_rate());
- done += this_time;
+ Audio (audio);
frames -= this_time;
}