#include "decoded.h"
class AudioBuffers;
+class Resampler;
/** @class AudioDecoder.
* @brief Parent class for audio decoders.
{
public:
AudioDecoder (boost::shared_ptr<const Film>, boost::shared_ptr<const AudioContent>);
-
+
boost::shared_ptr<const AudioContent> audio_content () const {
return _audio_content;
}
+ void seek (ContentTime time, bool accurate);
+
protected:
void audio (boost::shared_ptr<const AudioBuffers>, ContentTime);
-
- boost::shared_ptr<const AudioContent> _audio_content;
+ void flush ();
+
+ boost::shared_ptr<const AudioContent> _audio_content;
+ boost::shared_ptr<Resampler> _resampler;
+ boost::optional<AudioFrame> _audio_position;
};
#endif