X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fsound_asset.cc;h=641dc09a8a3b3679a9411909fb75ad5a2f420e33;hb=77b97edbd1a190a5d0da9dc760107772e7797c72;hp=74d412123803435de48e19d364ef5570f684cdb0;hpb=eb772d227c378e17c99b5d609b81d0cc4b664d2c;p=libdcp.git diff --git a/src/sound_asset.cc b/src/sound_asset.cc index 74d41212..641dc09a 100644 --- a/src/sound_asset.cc +++ b/src/sound_asset.cc @@ -84,8 +84,9 @@ SoundAsset::SoundAsset (boost::filesystem::path file) _id = read_writer_info (info); } -SoundAsset::SoundAsset (Fraction edit_rate, int sampling_rate, int channels) - : _edit_rate (edit_rate) +SoundAsset::SoundAsset (Fraction edit_rate, int sampling_rate, int channels, Standard standard) + : MXF (standard) + , _edit_rate (edit_rate) , _intrinsic_duration (0) , _channels (channels) , _sampling_rate (sampling_rate) @@ -192,16 +193,16 @@ SoundAsset::equals (shared_ptr other, EqualityOptions opt, NoteHand } shared_ptr -SoundAsset::start_write (boost::filesystem::path file, Standard standard) +SoundAsset::start_write (boost::filesystem::path file) { /* XXX: can't we use a shared_ptr here? */ - return shared_ptr (new SoundAssetWriter (this, file, standard)); + return shared_ptr (new SoundAssetWriter (this, file)); } shared_ptr SoundAsset::start_read () const { - return shared_ptr (new SoundAssetReader (this, key ())); + return shared_ptr (new SoundAssetReader (this, key(), standard())); } string