diff options
| author | Carl Hetherington <cth@carlh.net> | 2017-05-21 19:48:14 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2017-05-21 19:48:14 +0100 |
| commit | fa4d2529d63bcfa7cf7c516b7227e20a1b6dec7e (patch) | |
| tree | 1ac1107370c7384fbce6cc67ee3e3aa6475f807e /src/lib/player.h | |
| parent | 5bcbd6821a6ff1419f9069cf9e1a94c8557a992c (diff) | |
Do resampling in AudioDecoder rather than Player.
This fixes the problem where the decoder's position would not take
into account that all samples pushed into the resampler do not
always immediately come out. This would result in Player thinking
that there would be gaps when there are not.
Diffstat (limited to 'src/lib/player.h')
| -rw-r--r-- | src/lib/player.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/lib/player.h b/src/lib/player.h index 20c55e26d..20d9c9388 100644 --- a/src/lib/player.h +++ b/src/lib/player.h @@ -45,7 +45,6 @@ class Playlist; class Font; class AudioBuffers; class ReferencedReelAsset; -class Resampler; /** @class Player * @brief A class which can `play' a Playlist. @@ -107,10 +106,8 @@ private: void image_subtitle_start (boost::weak_ptr<Piece>, ContentImageSubtitle); void text_subtitle_start (boost::weak_ptr<Piece>, ContentTextSubtitle); void subtitle_stop (boost::weak_ptr<Piece>, ContentTime); - boost::shared_ptr<Resampler> resampler (boost::shared_ptr<const AudioContent> content, AudioStreamPtr stream, bool create); DCPTime one_video_frame () const; void fill_audio (DCPTimePeriod period); - void audio_flush (boost::shared_ptr<Piece>, AudioStreamPtr stream); void audio_transform (boost::shared_ptr<AudioContent> content, AudioStreamPtr stream, ContentAudio content_audio, DCPTime time); std::pair<boost::shared_ptr<AudioBuffers>, DCPTime> discard_audio ( boost::shared_ptr<const AudioBuffers> audio, DCPTime time, DCPTime discard_to @@ -173,8 +170,6 @@ private: ActiveSubtitles _active_subtitles; boost::shared_ptr<AudioProcessor> _audio_processor; - typedef std::map<std::pair<boost::shared_ptr<const AudioContent>, AudioStreamPtr>, boost::shared_ptr<Resampler> > ResamplerMap; - ResamplerMap _resamplers; boost::signals2::scoped_connection _film_changed_connection; boost::signals2::scoped_connection _playlist_changed_connection; |
