- /** Construct a SoundAsset, generating the MXF from some WAV files.
- * This may take some time; progress is indicated by emission of the Progress signal.
- * @param get_path Functor which returns a WAV file path for a given channel.
- * @param directory Directory in which to create MXF file.
- * @param mxf_name Name of MXF file to create.
- * @param progress Signal to inform of progress.
- * @param fps Frames per second.
- * @param length Length in frames.
- * @param start_frame Frame in the source to start writing from.
- * @param channels Number of audio channels.
- * @param encrypted true if asset should be encrypted.
- */
- SoundAsset (
- boost::function<std::string (Channel)> get_path,
- std::string directory,
- std::string mxf_name,
- boost::signals2::signal<void (float)>* progress,
- int fps,
- int length,
- int start_frame,
- int channels,
- bool encrypted
- );
-
- SoundAsset (
- std::string directory,
- std::string mxf_name,
- int fps,
- int entry_point,
- int length
- );
-
- /** Write details of the asset to a CPL AssetList node.
- * @param p Parent node.
- */
- void write_to_cpl (xmlpp::Element* p) const;
+ std::shared_ptr<SoundAssetWriter> start_write (boost::filesystem::path file, bool atmos_sync = false);
+ std::shared_ptr<SoundAssetReader> start_read () const;