From fe83eb5293fa4027856f6ee9faec7bfc8288badf Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 8 Sep 2016 23:55:37 +0100 Subject: Add channel assignment support for SMPTE DCPs. --- examples/make_dcp.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples') 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 sound_asset (new dcp::SoundAsset (dcp::Fraction (24, 1), 48000, 2)); - boost::shared_ptr sound_writer = sound_asset->start_write ("DCP/sound.mxf", dcp::SMPTE); + boost::shared_ptr 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; } -- cgit v1.2.3