diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-07-25 16:49:00 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-07-25 16:49:00 +0100 |
| commit | f08f4598f243dff5a4139f09ad00e8c643d4f0e0 (patch) | |
| tree | e3f5ca972c53ba2290a23f346dee9baedde95b99 /src/lib/audio_decoder.cc | |
| parent | c911df5915b258ee47b0e8952c5e4573b1fbaa76 (diff) | |
Audio position will be screwed up by resampling unless we are careful.
Diffstat (limited to 'src/lib/audio_decoder.cc')
| -rw-r--r-- | src/lib/audio_decoder.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/audio_decoder.cc b/src/lib/audio_decoder.cc index cf9e3ac51..846cdf595 100644 --- a/src/lib/audio_decoder.cc +++ b/src/lib/audio_decoder.cc @@ -48,14 +48,14 @@ AudioDecoder::AudioDecoder (shared_ptr<const Film> film, shared_ptr<const AudioC } void -AudioDecoder::audio (shared_ptr<const AudioBuffers> data, AudioContent::Frame frame) +AudioDecoder::audio (shared_ptr<const AudioBuffers> data, AudioContent::Frame) { if (_resampler) { data = _resampler->run (data); } Audio (data, _audio_position); - _audio_position = frame + data->frames (); + _audio_position += data->frames (); } void |
