#include "decoder.h"
#include "content.h"
+#include "audio_content.h"
class AudioBuffers;
class AudioDecoder : public virtual Decoder
{
public:
- AudioDecoder (boost::shared_ptr<const Film>);
+ 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 audio (boost::shared_ptr<const AudioBuffers>, AudioContent::Frame);
- AudioContent::Frame _next_audio_frame;
+ boost::shared_ptr<const AudioContent> _audio_content;
+ AudioContent::Frame _audio_position;
};
#endif