diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-12-18 09:39:36 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-12-18 09:39:36 +0000 |
| commit | 9c399a21b37d83ceb2c81706975e2c46d1a3f673 (patch) | |
| tree | 5b1123cd22cad797c9587c22927f9c9249ed4ca4 /src/lib/audio_decoder.h | |
| parent | da19eaac0dd80afed3dd282d61ea3298196a5090 (diff) | |
Considerable rework of decoder timing; tests pass, at least.
Diffstat (limited to 'src/lib/audio_decoder.h')
| -rw-r--r-- | src/lib/audio_decoder.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/lib/audio_decoder.h b/src/lib/audio_decoder.h index 10e4298f7..0cd0e9754 100644 --- a/src/lib/audio_decoder.h +++ b/src/lib/audio_decoder.h @@ -27,6 +27,7 @@ #include "decoder.h" #include "content.h" #include "audio_content.h" +#include "decoded.h" class AudioBuffers; @@ -38,15 +39,15 @@ 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>, ContentTime)> Audio; + boost::shared_ptr<const AudioContent> audio_content () const { + return _audio_content; + } protected: void audio (boost::shared_ptr<const AudioBuffers>, ContentTime); - boost::shared_ptr<const AudioContent> _audio_content; + + boost::shared_ptr<const AudioContent> _audio_content; }; #endif |
