summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-09-08 23:55:37 +0100
committerCarl Hetherington <cth@carlh.net>2016-09-08 23:55:37 +0100
commitfe83eb5293fa4027856f6ee9faec7bfc8288badf (patch)
tree8314bbbb6b37a2fb7cb13787276b6fb9474e99bd /examples
parent3e24098b32d6160759378e671bfca241dd9025d9 (diff)
Add channel assignment support for SMPTE DCPs.
Diffstat (limited to 'examples')
-rw-r--r--examples/make_dcp.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/make_dcp.cc b/examples/make_dcp.cc
index 94eef710..f0021e6b 100644
--- a/examples/make_dcp.cc
+++ b/examples/make_dcp.cc
@@ -48,7 +48,7 @@ main ()
{
/* Create a directory to put the DCP in */
boost::filesystem::create_directory ("DCP");
-
+
/* Make a picture asset. This is a file which combines JPEG2000 files together to make
up the video of the DCP. First, create the object, specifying a frame rate of 24 frames
per second.
@@ -72,7 +72,7 @@ main ()
When creating the object we specify the sampling rate (48kHz) and the number of channels (2).
*/
boost::shared_ptr<dcp::SoundAsset> sound_asset (new dcp::SoundAsset (dcp::Fraction (24, 1), 48000, 2));
- boost::shared_ptr<dcp::SoundAssetWriter> sound_writer = sound_asset->start_write ("DCP/sound.mxf", dcp::SMPTE);
+ boost::shared_ptr<dcp::SoundAssetWriter> sound_writer = sound_asset->start_write ("DCP/sound.mxf", dcp::SMPTE, dcp::CHANNEL_ASSIGNMENT_51);
/* Write some sine waves */
float* audio[2];
@@ -106,6 +106,6 @@ main ()
dcp::DCP dcp ("DCP");
dcp.add (cpl);
dcp.write_xml (dcp::SMPTE);
-
+
return 0;
}