Hopefully much cleaner handling of PTS changes under resample.
[dcpomatic.git] / src / lib / audio_decoder.h
index b1ec54a7b40fa5683a9ac75f20366db70bc34690..2ad53da8bf42684e544e753bc6b0ca4708c72d19 100644 (file)
@@ -29,7 +29,6 @@
 #include "audio_content.h"
 
 class AudioBuffers;
-class Resampler;
 
 /** @class AudioDecoder.
  *  @brief Parent class for audio decoders.
@@ -37,7 +36,7 @@ class Resampler;
 class AudioDecoder : public virtual Decoder
 {
 public:
-       AudioDecoder (boost::shared_ptr<const Film>, boost::shared_ptr<const AudioContent>);
+       AudioDecoder (boost::shared_ptr<const Film>);
 
        /** Emitted when some audio data is ready */
        boost::signals2::signal<void (boost::shared_ptr<const AudioBuffers>, AudioContent::Frame)> Audio;
@@ -45,9 +44,7 @@ public:
 protected:
 
        void audio (boost::shared_ptr<const AudioBuffers>, AudioContent::Frame);
-       /** Frame index of next emission (post resampling) */
        AudioContent::Frame _audio_position;
-       boost::shared_ptr<Resampler> _resampler;
 };
 
 #endif