diff options
| author | Carl Hetherington <cth@carlh.net> | 2017-02-21 21:42:44 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2017-04-19 23:04:32 +0100 |
| commit | 89aa9d4ba69e471949f791cdafe4ae20cea554d2 (patch) | |
| tree | a8260555268d392292775a2851d8780e5612091b /src/lib/player.h | |
| parent | 7db99ef207c68910ee96a3e806c9832e8f90b219 (diff) | |
Various fixes to push audio vaguely in the right direction.
Diffstat (limited to 'src/lib/player.h')
| -rw-r--r-- | src/lib/player.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/player.h b/src/lib/player.h index ba7845b54..c891ee85c 100644 --- a/src/lib/player.h +++ b/src/lib/player.h @@ -44,6 +44,7 @@ class Playlist; class Font; class AudioBuffers; class ReferencedReelAsset; +class Resampler; /** @class Player * @brief A class which can `play' a Playlist. @@ -105,6 +106,7 @@ private: void audio (boost::weak_ptr<Piece>, AudioStreamPtr, ContentAudio); void image_subtitle (boost::weak_ptr<Piece>, ContentImageSubtitle); void text_subtitle (boost::weak_ptr<Piece>, ContentTextSubtitle); + boost::shared_ptr<Resampler> resampler (boost::shared_ptr<const AudioContent> content, AudioStreamPtr stream, bool create); boost::shared_ptr<const Film> _film; boost::shared_ptr<const Playlist> _playlist; @@ -141,6 +143,8 @@ private: std::list<std::pair<PlayerSubtitles, DCPTimePeriod> > _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; |
