X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fsingle_stream_audio_content.h;h=ad4de46ea22d0f63fec6ec35eb84700c77a50a63;hb=0d36ac996c7aed9e283cd05314ae2124384df5ea;hp=944d887b0ba4ae9ec293efe9e6b1385697e9372c;hpb=661de111c0dbc968ecb004eca5b26f8400b136f1;p=dcpomatic.git diff --git a/src/lib/single_stream_audio_content.h b/src/lib/single_stream_audio_content.h index 944d887b0..ad4de46ea 100644 --- a/src/lib/single_stream_audio_content.h +++ b/src/lib/single_stream_audio_content.h @@ -36,39 +36,22 @@ class SingleStreamAudioContent : public AudioContent public: SingleStreamAudioContent (boost::shared_ptr); SingleStreamAudioContent (boost::shared_ptr, boost::filesystem::path); - SingleStreamAudioContent (boost::shared_ptr f, cxml::ConstNodePtr node, int version); + SingleStreamAudioContent (boost::shared_ptr, cxml::ConstNodePtr node, int version); void as_xml (xmlpp::Node* node) const; - int audio_channels () const { - boost::mutex::scoped_lock lm (_mutex); - return _audio_channels; - } - - Frame audio_length () const { - boost::mutex::scoped_lock lm (_mutex); - return _audio_length; - } - - int audio_frame_rate () const { - boost::mutex::scoped_lock lm (_mutex); - return _audio_frame_rate; - } + std::vector audio_streams () const; - AudioMapping audio_mapping () const { - boost::mutex::scoped_lock lm (_mutex); - return _audio_mapping; + AudioStreamPtr audio_stream () const { + return _audio_stream; } - void set_audio_mapping (AudioMapping); - void take_from_audio_examiner (boost::shared_ptr); protected: - int _audio_channels; - Frame _audio_length; - int _audio_frame_rate; - AudioMapping _audio_mapping; + void add_properties (std::list > &) const; + + boost::shared_ptr _audio_stream; }; #endif