diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-03-26 00:09:15 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-03-26 00:09:15 +0100 |
| commit | b9c5e3f74550917676e14324791d6ba4d0c07cac (patch) | |
| tree | 4e3264a68c365af195f682b548186f6c973246b7 /examples/make_dcp.cc | |
| parent | c7208194515e93f85441c76d78d11a47d79b36e1 (diff) | |
Write MCA tags based on the specified sound field.
I had previously assumed that one should write MCA information into
the sound MXF based on what channels actually contain sound rather
than silence.
However a previous example of a stereo DCP gives a verification error
in EasyDCP (see DoM bug #1935) which is solved by adding MCA tags
for each channel in the specified sound field (e.g. at least 6 tags
for a file which is marked as 5.1) even if the audio is really stereo.
This commit removes the "active channels" stuff and makes sure
that if we say a file is 5.1 we write at least 6 MCA tags (and
similarly for 7.1).
Diffstat (limited to 'examples/make_dcp.cc')
| -rw-r--r-- | examples/make_dcp.cc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/examples/make_dcp.cc b/examples/make_dcp.cc index 22f6e722..dbd95a52 100644 --- a/examples/make_dcp.cc +++ b/examples/make_dcp.cc @@ -74,11 +74,7 @@ main () When creating the object we specify the sampling rate (48kHz) and the number of channels (2). */ auto sound_asset = std::make_shared<dcp::SoundAsset>(dcp::Fraction(24, 1), 48000, 2, dcp::LanguageTag("en-GB"), dcp::Standard::SMPTE); - /* Here we must also say which of our channels will have "real" sound data in them */ - std::vector<dcp::Channel> active_channels; - active_channels.push_back(dcp::Channel::LEFT); - active_channels.push_back(dcp::Channel::RIGHT); - auto sound_writer = sound_asset->start_write("DCP/sound.mxf", active_channels); + auto sound_writer = sound_asset->start_write("DCP/sound.mxf"); /* Write some sine waves */ std::array<float, 48000> left; |
