* @param progress Signal to inform of progress.
* @param fps Frames per second.
* @param length Length in frames.
+ * @param encrypted true if asset should be encrypted.
*/
SoundAsset (
std::vector<std::string> const & files,
std::string directory,
std::string mxf_name,
- sigc::signal1<void, float>* progress,
+ boost::signals2::signal<void (float)>* progress,
int fps,
- int length
+ int length,
+ bool encrypted
);
/** Construct a SoundAsset, generating the MXF from some WAV files.
* @param fps Frames per second.
* @param length Length in frames.
* @param channels Number of audio channels.
+ * @param encrypted true if asset should be encrypted.
*/
SoundAsset (
- sigc::slot<std::string, Channel> get_path,
+ boost::function<std::string (Channel)> get_path,
std::string directory,
std::string mxf_name,
- sigc::signal1<void, float>* progress,
+ boost::signals2::signal<void (float)>* progress,
int fps,
int length,
- int channels
+ int channels,
+ bool encrypted
);
SoundAsset (
int length
);
- /** Write details of this asset to a CPL stream.
- * @param s Stream.
+ /** Write details of the asset to a CPL AssetList node.
+ * @param p Parent node.
*/
- void write_to_cpl (std::ostream& s) const;
+ void write_to_cpl (xmlpp::Element* p) const;
- std::list<std::string> equals (boost::shared_ptr<const Asset> other, EqualityOptions opt) const;
+ bool equals (boost::shared_ptr<const Asset> other, EqualityOptions opt, std::list<std::string>& notes) const;
boost::shared_ptr<const SoundFrame> get_frame (int n) const;
}
private:
- void construct (sigc::slot<std::string, Channel> get_path);
+ std::string key_type () const;
+
+ void construct (boost::function<std::string (Channel)> get_path);
std::string path_from_channel (Channel channel, std::vector<std::string> const & files);
/** Number of channels in the asset */