diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-04-13 18:39:56 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-05-18 11:50:29 +0100 |
| commit | 6dd3777a0074f6f97c7f7286621006a1c14376e8 (patch) | |
| tree | f151d71e7d5616e87d1b1d087e4a3034d676dee7 /src/lib/dcp_content.h | |
| parent | c5dab5fdc0edde080e408a6d24fa059e27106ef5 (diff) | |
Copy SingleStreamAudioContent into DCPContent and SndfileContent.
Diffstat (limited to 'src/lib/dcp_content.h')
| -rw-r--r-- | src/lib/dcp_content.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/lib/dcp_content.h b/src/lib/dcp_content.h index 81432b6d3..f3cd6bf65 100644 --- a/src/lib/dcp_content.h +++ b/src/lib/dcp_content.h @@ -24,7 +24,7 @@ * @brief DCPContent class. */ -#include "single_stream_audio_content.h" +#include "audio_content.h" #include <libcxml/cxml.h> #include <dcp/encrypted_kdm.h> @@ -40,7 +40,7 @@ public: /** @class DCPContent * @brief An existing DCP used as input. */ -class DCPContent : public SingleStreamAudioContent +class DCPContent : public AudioContent { public: DCPContent (boost::shared_ptr<const Film>, boost::filesystem::path p); @@ -120,6 +120,12 @@ public: bool can_reference_subtitle (std::list<std::string> &) const; + std::vector<AudioStreamPtr> audio_streams () const; + + AudioStreamPtr audio_stream () const { + return _audio_stream; + } + protected: void add_properties (std::list<UserProperty>& p) const; @@ -147,6 +153,8 @@ private: * rather than by rewrapping. */ bool _reference_subtitle; + + boost::shared_ptr<AudioStream> _audio_stream; }; #endif |
