diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-11-21 01:59:04 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-11-21 01:59:04 +0000 |
| commit | 254b3044d72de6b033d7c584f5abd2b9aa70aad5 (patch) | |
| tree | 8a5c83c1b2dea690672663dedb2f3aa50f4473dc /src/lib/audio_decoder.h | |
| parent | c31b9542c58ae1cbfae7ec3ba4911359fd010ba2 (diff) | |
Take Film pointer out of Content.
Diffstat (limited to 'src/lib/audio_decoder.h')
| -rw-r--r-- | src/lib/audio_decoder.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/lib/audio_decoder.h b/src/lib/audio_decoder.h index 8765be426..50e361e8f 100644 --- a/src/lib/audio_decoder.h +++ b/src/lib/audio_decoder.h @@ -36,6 +36,7 @@ class AudioBuffers; class AudioContent; class AudioDecoderStream; class Log; +class Film; class Resampler; /** @class AudioDecoder. @@ -44,14 +45,14 @@ class Resampler; class AudioDecoder : public boost::enable_shared_from_this<AudioDecoder>, public DecoderPart { public: - AudioDecoder (Decoder* parent, boost::shared_ptr<const AudioContent> content, boost::shared_ptr<Log> log, bool fast); + AudioDecoder (Decoder* parent, boost::shared_ptr<const AudioContent> content, bool fast); - ContentTime position () const; - void emit (AudioStreamPtr stream, boost::shared_ptr<const AudioBuffers>, ContentTime); + ContentTime position (boost::shared_ptr<const Film> film) const; + void emit (boost::shared_ptr<const Film> film, AudioStreamPtr stream, boost::shared_ptr<const AudioBuffers>, ContentTime); void seek (); void flush (); - ContentTime stream_position (AudioStreamPtr stream) const; + ContentTime stream_position (boost::shared_ptr<const Film> film, AudioStreamPtr stream) const; /** @return Number of frames of data that were accepted */ boost::signals2::signal<void (AudioStreamPtr, ContentAudio)> Data; |
