summaryrefslogtreecommitdiff
path: root/src/lib/audio_decoder.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-05-10 23:06:17 +0100
committerCarl Hetherington <cth@carlh.net>2013-05-10 23:06:17 +0100
commitd683883c4dc25cb612f6d5feb1e772016182e722 (patch)
tree677094d74c815184fc75d3d1b344d4ef32014c8a /src/lib/audio_decoder.h
parent76052960d07a611889967f5927e2adb0d867ea07 (diff)
Move SRC (badly) to AudioDecoder.
Diffstat (limited to 'src/lib/audio_decoder.h')
-rw-r--r--src/lib/audio_decoder.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/lib/audio_decoder.h b/src/lib/audio_decoder.h
index c393e95f1..8db16e369 100644
--- a/src/lib/audio_decoder.h
+++ b/src/lib/audio_decoder.h
@@ -26,6 +26,9 @@
#include "audio_source.h"
#include "decoder.h"
+extern "C" {
+#include <libswresample/swresample.h>
+}
class AudioContent;
@@ -35,7 +38,14 @@ class AudioContent;
class AudioDecoder : public TimedAudioSource, public virtual Decoder
{
public:
- AudioDecoder (boost::shared_ptr<const Film>);
+ AudioDecoder (boost::shared_ptr<const Film>, boost::shared_ptr<const AudioContent>);
+ ~AudioDecoder ();
+
+ void emit_audio (boost::shared_ptr<const AudioBuffers>, Time);
+
+private:
+ boost::shared_ptr<const AudioContent> _audio_content;
+ SwrContext* _swr_context;
};
#endif