From 0e29e68e94daade47167ac5bc6b51362ef02b5c3 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 6 Mar 2018 01:01:29 +0000 Subject: Store interop/SMPTE in MXF. --- examples/make_dcp.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'examples') diff --git a/examples/make_dcp.cc b/examples/make_dcp.cc index 582dd946..0c7ebf77 100644 --- a/examples/make_dcp.cc +++ b/examples/make_dcp.cc @@ -54,10 +54,10 @@ main () per second. */ - boost::shared_ptr picture_asset (new dcp::MonoPictureAsset (dcp::Fraction (24, 1))); + boost::shared_ptr picture_asset (new dcp::MonoPictureAsset (dcp::Fraction (24, 1), dcp::SMPTE)); /* Start off a write to it */ - boost::shared_ptr picture_writer = picture_asset->start_write ("DCP/picture.mxf", dcp::SMPTE, false); + boost::shared_ptr picture_writer = picture_asset->start_write ("DCP/picture.mxf", false); /* Write 24 frames of the same JPEG2000 file */ dcp::File picture ("examples/help.j2c"); @@ -71,8 +71,8 @@ main () /* Now create a sound MXF. As before, create an object and a writer. 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_asset (new dcp::SoundAsset (dcp::Fraction (24, 1), 48000, 2, dcp::SMPTE)); + boost::shared_ptr sound_writer = sound_asset->start_write ("DCP/sound.mxf"); /* Write some sine waves */ float* audio[2]; -- cgit v1.2.3