X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Faudio_content.h;h=b109cc15e199b43b96f69626e062f5ea0b244287;hb=9a3df0a97b7962c00726447a75599e34c632cb2b;hp=d73c73735fa796a319cb14fcf3fdda7b2a538ad3;hpb=bd5e8b83a3a18787241982efdae809d4db21f65d;p=dcpomatic.git diff --git a/src/lib/audio_content.h b/src/lib/audio_content.h index d73c73735..b109cc15e 100644 --- a/src/lib/audio_content.h +++ b/src/lib/audio_content.h @@ -44,6 +44,7 @@ class AudioContent : public ContentPart { public: explicit AudioContent (Content* parent); + AudioContent (Content* parent, std::vector >); void as_xml (xmlpp::Node *) const; std::string technical_summary () const; @@ -51,9 +52,8 @@ public: AudioMapping mapping () const; void set_mapping (AudioMapping); - int resampled_frame_rate () const; - bool has_rate_above_48k () const; - std::vector channel_names () const; + int resampled_frame_rate (boost::shared_ptr film) const; + std::vector channel_names () const; void set_gain (double); void set_delay (int); @@ -68,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); @@ -80,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);