+ dcpomatic::ContentTime fade_in () const;
+ dcpomatic::ContentTime fade_out () const;
+
+ void set_fade_in (dcpomatic::ContentTime time);
+ void set_fade_out (dcpomatic::ContentTime time);
+ void set_use_same_fades_as_video (bool s);
+
+ std::string processing_description (std::shared_ptr<const Film> film) const;
+
+ std::vector<AudioStreamPtr> streams () const {
+ boost::mutex::scoped_lock lm (_mutex);
+ return _streams;
+ }
+
+ void add_stream (AudioStreamPtr stream);
+ void set_stream (AudioStreamPtr stream);
+ void set_streams (std::vector<AudioStreamPtr> streams);
+ AudioStreamPtr stream () const;
+
+ void add_properties (std::shared_ptr<const Film> film, std::list<UserProperty> &) const;
+
+ void modify_position (std::shared_ptr<const Film> film, dcpomatic::DCPTime& pos) const;
+ void modify_trim_start(std::shared_ptr<const Film> film, dcpomatic::ContentTime& pos) const;
+
+ /** @param frame frame within the whole (untrimmed) content.
+ * @param frame_rate The frame rate of the audio (it may have been resampled).
+ * @return a fade coefficient for @ref length samples starting at an offset @frame within
+ * the content, or an empty vector if the given section has no fade.
+ */
+ std::vector<float> fade (AudioStreamPtr stream, Frame frame, Frame length, int frame_rate) const;
+
+ static std::shared_ptr<AudioContent> from_xml (Content* parent, cxml::ConstNodePtr, int version);
+