Revert "Split timed from untimed sinks / sources. Should produce same output, in...
[dcpomatic.git] / src / lib / external_audio_decoder.cc
index 50e5852c5fb86bee5c6729133503ed568cde66bb..1248b5a3b1a5a0b18b7ff076f9ae14cfd5acb5d0 100644 (file)
@@ -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;
        }