diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-01-04 21:16:53 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-01-07 22:48:29 +0100 |
| commit | dd9be86db6cde0afa5da0d1d1ac43b42e05dca26 (patch) | |
| tree | e56a3f82fb9e1c8602f265bea0d0688d8a018644 /src/lib/audio_decoder.h | |
| parent | 0d35820cf50d2789752b8776683b26d04642518d (diff) | |
std::shared_ptr
Diffstat (limited to 'src/lib/audio_decoder.h')
| -rw-r--r-- | src/lib/audio_decoder.h | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/lib/audio_decoder.h b/src/lib/audio_decoder.h index 897ddb7e4..2b6e3f758 100644 --- a/src/lib/audio_decoder.h +++ b/src/lib/audio_decoder.h @@ -29,7 +29,6 @@ #include "content_audio.h" #include "audio_stream.h" #include "decoder_part.h" -#include <boost/enable_shared_from_this.hpp> #include <boost/signals2.hpp> class AudioBuffers; @@ -42,30 +41,30 @@ class Resampler; /** @class AudioDecoder. * @brief Parent class for audio decoders. */ -class AudioDecoder : public boost::enable_shared_from_this<AudioDecoder>, public DecoderPart +class AudioDecoder : public std::enable_shared_from_this<AudioDecoder>, public DecoderPart { public: - AudioDecoder (Decoder* parent, boost::shared_ptr<const AudioContent> content, bool fast); + AudioDecoder (Decoder* parent, std::shared_ptr<const AudioContent> content, bool fast); - boost::optional<dcpomatic::ContentTime> position (boost::shared_ptr<const Film> film) const; - void emit (boost::shared_ptr<const Film> film, AudioStreamPtr stream, boost::shared_ptr<const AudioBuffers>, dcpomatic::ContentTime, bool time_already_delayed = false); + boost::optional<dcpomatic::ContentTime> position (std::shared_ptr<const Film> film) const; + void emit (std::shared_ptr<const Film> film, AudioStreamPtr stream, std::shared_ptr<const AudioBuffers>, dcpomatic::ContentTime, bool time_already_delayed = false); void seek (); void flush (); - dcpomatic::ContentTime stream_position (boost::shared_ptr<const Film> film, AudioStreamPtr stream) const; + dcpomatic::ContentTime stream_position (std::shared_ptr<const Film> film, AudioStreamPtr stream) const; boost::signals2::signal<void (AudioStreamPtr, ContentAudio)> Data; private: void silence (int milliseconds); - boost::shared_ptr<const AudioContent> _content; + std::shared_ptr<const AudioContent> _content; /** Frame after the last one that was emitted from Data (i.e. at the resampled rate, if applicable) * for each AudioStream. */ typedef std::map<AudioStreamPtr, Frame> PositionMap; PositionMap _positions; - typedef std::map<AudioStreamPtr, boost::shared_ptr<Resampler> > ResamplerMap; + typedef std::map<AudioStreamPtr, std::shared_ptr<Resampler> > ResamplerMap; ResamplerMap _resamplers; bool _fast; |
