diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-03-06 01:01:29 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-03-13 22:29:01 +0000 |
| commit | 0e29e68e94daade47167ac5bc6b51362ef02b5c3 (patch) | |
| tree | accedb6af7c7763086af8abf108655791fce439d /src/sound_asset.cc | |
| parent | 92d04684c81baa6c56ff3299f1cffd1ac787c71f (diff) | |
Store interop/SMPTE in MXF.
Diffstat (limited to 'src/sound_asset.cc')
| -rw-r--r-- | src/sound_asset.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/sound_asset.cc b/src/sound_asset.cc index 74d41212..b8ed6fb5 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,10 +193,10 @@ SoundAsset::equals (shared_ptr<const Asset> other, EqualityOptions opt, NoteHand } shared_ptr<SoundAssetWriter> -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<SoundAssetWriter> (new SoundAssetWriter (this, file, standard)); + return shared_ptr<SoundAssetWriter> (new SoundAssetWriter (this, file)); } shared_ptr<SoundAssetReader> |
