diff options
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/player.cc | 9 | ||||
| -rw-r--r-- | src/lib/resampler.cc | 1 |
2 files changed, 1 insertions, 9 deletions
diff --git a/src/lib/player.cc b/src/lib/player.cc index 6db7ff693..7ab72d9a1 100644 --- a/src/lib/player.cc +++ b/src/lib/player.cc @@ -264,9 +264,6 @@ Player::process_audio (weak_ptr<Piece> weak_piece, shared_ptr<const AudioBuffers if (content->content_audio_frame_rate() != content->output_audio_frame_rate()) { shared_ptr<Resampler> r = resampler (content); audio = r->run (audio); - _last_resampler = r; - } else { - _last_resampler.reset (); } /* Remap channels */ @@ -343,12 +340,6 @@ Player::flush () _audio_buffers.set_frames (0); } - if (_last_resampler) { -// shared_ptr<const AudioBuffers> resamp = _last_resampler->flush (); -// Audio (resamp, _audio_position); -// _audio_position += _film->audio_frames_to_time (resamp->frames ()); - } - while (_video_position < _audio_position) { emit_black (); } diff --git a/src/lib/resampler.cc b/src/lib/resampler.cc index cc5072442..565fb69c2 100644 --- a/src/lib/resampler.cc +++ b/src/lib/resampler.cc @@ -80,6 +80,7 @@ Resampler::run (shared_ptr<const AudioBuffers> in) return resampled; } +/* XXX: no-one calls this */ shared_ptr<const AudioBuffers> Resampler::flush () { |
