Use SafeStringStream instead of std::stringstream to try to fix random crashes on...
[dcpomatic.git] / src / lib / audio_decoder.h
index e2d28d707908fd4d5b90eeeac6a73fc528c1054f..ab6c4b8a931e12cfe892c8cb74d86ae7162d1a10 100644 (file)
@@ -29,7 +29,6 @@
 #include "audio_content.h"
 
 class AudioBuffers;
-class Resampler;
 
 /** @class AudioDecoder.
  *  @brief Parent class for audio decoders.
@@ -39,17 +38,16 @@ class AudioDecoder : public virtual Decoder
 public:
        AudioDecoder (boost::shared_ptr<const Film>, boost::shared_ptr<const AudioContent>);
 
+       bool has_audio () const;
+
        /** Emitted when some audio data is ready */
        boost::signals2::signal<void (boost::shared_ptr<const AudioBuffers>, AudioContent::Frame)> Audio;
 
 protected:
 
-       void flush ();
-
        void audio (boost::shared_ptr<const AudioBuffers>, AudioContent::Frame);
-       /** Frame index of next emission (post resampling) */
+       boost::shared_ptr<const AudioContent> _audio_content;
        AudioContent::Frame _audio_position;
-       boost::shared_ptr<Resampler> _resampler;
 };
 
 #endif