Add test() to cscript.
[libdcp.git] / src / sound_asset.h
index 43587a9a09baab8112611cca5985cd0bbcab5739..c52a5436a4c713ee913a954e5975a4979bfebac2 100644 (file)
@@ -71,7 +71,23 @@ public:
        SoundAsset (boost::filesystem::path directory, boost::filesystem::path mxf_name);
 
        void read ();
+
+       /** The following parameters must be set up (if required) before calling this:
+        *      Interop mode (set_interop)
+        *      Edit rate    (set_edit_rate)
+        *      MXF Metadata (set_metadata)
+        *      Channels     (set_channels)
+        *      Intrinsic duration (set_intrinsic_duration)
+        */
        void create (std::vector<boost::filesystem::path> const & files);
+
+       /** The following parameters must be set up (if required) before calling this:
+        *      Interop mode (set_interop)
+        *      Edit rate    (set_edit_rate)
+        *      MXF Metadata (set_metadata)
+        *      Channels     (set_channels)
+        *      Intrinsic duration (set_intrinsic_duration)
+        */
        void create (boost::function<boost::filesystem::path (Channel)> get_path);
 
        boost::shared_ptr<SoundAssetWriter> start_write ();
@@ -96,6 +112,12 @@ public:
                return _sampling_rate;
        }
 
+protected:
+
+       std::string asdcp_kind () const {
+               return "Sound";
+       }
+       
 private:
        std::string key_type () const;
        void construct (boost::function<boost::filesystem::path (Channel)> get_path);