Allow content parts to not be preset in XML.
[dcpomatic.git] / src / lib / audio_content.h
index 7de0742a51067fdfc061f6e66c1d1f9c401a42f3..e196e15c208e6573441c8c3de736c1d31089e4a3 100644 (file)
@@ -43,7 +43,6 @@ class AudioContent : public ContentPart
 {
 public:
        AudioContent (Content* parent, boost::shared_ptr<const Film>);
-       AudioContent (Content* parent, boost::shared_ptr<const Film>, cxml::ConstNodePtr);
        AudioContent (Content* parent, boost::shared_ptr<const Film>, std::vector<boost::shared_ptr<Content> >);
 
        void as_xml (xmlpp::Node *) const;
@@ -82,8 +81,12 @@ public:
 
        void add_properties (std::list<UserProperty> &) const;
 
+       static boost::shared_ptr<AudioContent> from_xml (Content* parent, boost::shared_ptr<const Film>, cxml::ConstNodePtr);
+
 private:
 
+       AudioContent (Content* parent, boost::shared_ptr<const Film>, cxml::ConstNodePtr);
+
        /** Gain to apply to audio in dB */
        double _gain;
        /** Delay to apply to audio (positive moves audio later) in milliseconds */