summaryrefslogtreecommitdiff
path: root/src/lib/audio_decoder.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-07-25 13:33:08 +0100
committerCarl Hetherington <cth@carlh.net>2013-07-25 13:33:08 +0100
commit872557b0261c0daf2206a24e38f33b1c9871c8a3 (patch)
treeeb48213893311c0b5de4d05c8db8bd273e6ca993 /src/lib/audio_decoder.cc
parentd9362bdd24f01e4c833e89d63ac3816f36eae36e (diff)
Call Resampler::flush() again.
Diffstat (limited to 'src/lib/audio_decoder.cc')
-rw-r--r--src/lib/audio_decoder.cc10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/lib/audio_decoder.cc b/src/lib/audio_decoder.cc
index 0ed3505cf..e827a77b9 100644
--- a/src/lib/audio_decoder.cc
+++ b/src/lib/audio_decoder.cc
@@ -50,8 +50,6 @@ AudioDecoder::AudioDecoder (shared_ptr<const Film> film, shared_ptr<const AudioC
void
AudioDecoder::audio (shared_ptr<const AudioBuffers> data, AudioContent::Frame frame)
{
- /* XXX: no-one's calling _resampler->flush() again */
-
if (_resampler) {
data = _resampler->run (data);
}
@@ -59,3 +57,11 @@ AudioDecoder::audio (shared_ptr<const AudioBuffers> data, AudioContent::Frame fr
Audio (data, _audio_position);
_audio_position = frame + data->frames ();
}
+
+void
+AudioDecoder::flush ()
+{
+ if (_resampler) {
+ _resampler->flush ();
+ }
+}