Untested external audio support; AB transcodes still broken.
[dcpomatic.git] / src / lib / audio_decoder.h
1 #ifndef DVDOMATIC_AUDIO_DECODER_H
2 #define DVDOMATIC_AUDIO_DECODER_H
3
4 #include "audio_source.h"
5 #include "stream.h"
6 #include "decoder.h"
7
8 class AudioDecoder : public AudioSource, public virtual Decoder
9 {
10 public:
11         AudioDecoder (boost::shared_ptr<Film>, boost::shared_ptr<const Options>, Job *);
12
13         virtual void set_audio_stream (boost::optional<AudioStream>);
14
15         boost::optional<AudioStream> audio_stream () const {
16                 return _audio_stream;
17         }
18
19         std::vector<AudioStream> audio_streams () const {
20                 return _audio_streams;
21         }
22
23 protected:
24         boost::optional<AudioStream> _audio_stream;
25         std::vector<AudioStream> _audio_streams;
26 };
27
28 #endif