diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-09-25 20:41:45 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-09-25 20:41:45 +0100 |
| commit | f76647abae551840a43bb8f07189051ec20bab6d (patch) | |
| tree | 12d67e33c71516480cb71381bc426dfe18513821 /test/dcp_test.cc | |
| parent | e8530ea06f0b0883e5e19dd18beed70732ac5d3c (diff) | |
Switch away from the many-constructor-arguments approach to a hopefully simpler API.
Diffstat (limited to 'test/dcp_test.cc')
| -rw-r--r-- | test/dcp_test.cc | 38 |
1 files changed, 16 insertions, 22 deletions
diff --git a/test/dcp_test.cc b/test/dcp_test.cc index 9d3b8171..b9c94bd8 100644 --- a/test/dcp_test.cc +++ b/test/dcp_test.cc @@ -50,29 +50,23 @@ BOOST_AUTO_TEST_CASE (dcp_test) libdcp::DCP d ("build/test/foo"); shared_ptr<libdcp::CPL> cpl (new libdcp::CPL ("build/test/foo", "A Test DCP", libdcp::FEATURE, 24, 24)); - shared_ptr<libdcp::MonoPictureAsset> mp (new libdcp::MonoPictureAsset ( - j2c, - "build/test/foo", - "video.mxf", - &d.Progress, - 24, - 24, - libdcp::Size (32, 32), - false, - mxf_meta - )); + shared_ptr<libdcp::MonoPictureAsset> mp (new libdcp::MonoPictureAsset ("build/test/foo", "video.mxf")); + mp->set_progress (&d.Progress); + mp->set_edit_rate (24); + mp->set_intrinsic_duration (24); + mp->set_duration (24); + mp->set_size (libdcp::Size (32, 32)); + mp->set_metadata (mxf_meta); + mp->create (j2c); - shared_ptr<libdcp::SoundAsset> ms (new libdcp::SoundAsset ( - wav, - "build/test/foo", - "audio.mxf", - &(d.Progress), - 24, - 24, - 2, - false, - mxf_meta - )); + shared_ptr<libdcp::SoundAsset> ms (new libdcp::SoundAsset ("build/test/foo", "audio.mxf")); + ms->set_progress (&d.Progress); + ms->set_edit_rate (24); + ms->set_intrinsic_duration (24); + ms->set_duration (24); + ms->set_channels (2); + ms->set_metadata (mxf_meta); + ms->create (wav); cpl->add_reel (shared_ptr<libdcp::Reel> (new libdcp::Reel (mp, ms, shared_ptr<libdcp::SubtitleAsset> ()))); d.add_cpl (cpl); |
