diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-05-10 13:22:35 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-05-18 11:50:29 +0100 |
| commit | cc76b517f6a74f813ae38137bdc88ff3bafa6dd9 (patch) | |
| tree | 34c2960763f897936efef689898a1f392fb38375 /src/lib/audio_content.h | |
| parent | a3073b3059e8df6304d2936ab2c605e6908a7373 (diff) | |
Allow content parts to not be preset in XML.
Diffstat (limited to 'src/lib/audio_content.h')
| -rw-r--r-- | src/lib/audio_content.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/audio_content.h b/src/lib/audio_content.h index 7de0742a5..e196e15c2 100644 --- a/src/lib/audio_content.h +++ b/src/lib/audio_content.h @@ -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 */ |
