X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Faudio_content.h;h=504c2aecfffde3b2719eff1789babcd3639a010a;hb=8902a7adb63e2dac24e877ed1035bf344397c260;hp=e582bca2092c101e66f4243bb2c7e6c25544af31;hpb=249ae25148213a2ab5d76980133182e7f2521524;p=dcpomatic.git diff --git a/src/lib/audio_content.h b/src/lib/audio_content.h index e582bca20..504c2aecf 100644 --- a/src/lib/audio_content.h +++ b/src/lib/audio_content.h @@ -43,7 +43,7 @@ public: class AudioContent : public ContentPart { public: - AudioContent (Content* parent); + explicit AudioContent (Content* parent); AudioContent (Content* parent, std::vector >); void as_xml (xmlpp::Node *) const; @@ -52,8 +52,7 @@ public: AudioMapping mapping () const; void set_mapping (AudioMapping); - int resampled_frame_rate () const; - bool has_rate_above_48k () const; + int resampled_frame_rate (boost::shared_ptr film) const; std::vector channel_names () const; void set_gain (double); @@ -69,7 +68,7 @@ public: return _delay; } - std::string processing_description () const; + std::string processing_description (boost::shared_ptr film) const; std::vector streams () const { boost::mutex::scoped_lock lm (_mutex); @@ -81,7 +80,10 @@ public: void set_streams (std::vector streams); AudioStreamPtr stream () const; - void add_properties (std::list &) const; + void add_properties (boost::shared_ptr film, std::list &) const; + + void modify_position (boost::shared_ptr film, dcpomatic::DCPTime& pos) const; + void modify_trim_start (dcpomatic::ContentTime& pos) const; static boost::shared_ptr from_xml (Content* parent, cxml::ConstNodePtr, int version);