From 2da55dbe6da21975612584365db17db2ae9935b8 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 2 Apr 2023 23:10:24 +0200 Subject: Pass MainSoundConfiguration object rather than a string. I guess originally it was a string mostly because it's not very well defined, and Interop seemingly does whatever it wants. This basic change also means that things are checked more carefully, and so we must be more relaxed with some things seen in the wild that I can't find contradictions for in the standard (and also with the case of channel IDs, which does seem to be mentioned in the standard). --- test/mca_test.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/mca_test.cc') diff --git a/test/mca_test.cc b/test/mca_test.cc index 308d6602..bdfc9484 100644 --- a/test/mca_test.cc +++ b/test/mca_test.cc @@ -69,7 +69,7 @@ BOOST_AUTO_TEST_CASE (parse_mca_descriptors_from_mxf_test) dcp::CPL cpl("", dcp::ContentKind::FEATURE, dcp::Standard::SMPTE); cpl.add (reel); - cpl.set_main_sound_configuration("51/L,R,C,LFE,Ls,Rs"); + cpl.set_main_sound_configuration(dcp::MainSoundConfiguration("51/L,R,C,LFE,Ls,Rs")); cpl.set_main_sound_sample_rate(48000); cpl.set_main_picture_stored_area(dcp::Size(1998, 1080)); cpl.set_main_picture_active_area(dcp::Size(1998, 1080)); @@ -122,7 +122,7 @@ BOOST_AUTO_TEST_CASE (write_mca_descriptors_to_mxf_test) dcp::CPL cpl("", dcp::ContentKind::FEATURE, dcp::Standard::SMPTE); cpl.add (reel); - cpl.set_main_sound_configuration("51/L,R,C,LFE,Ls,Rs"); + cpl.set_main_sound_configuration(dcp::MainSoundConfiguration("51/L,R,C,LFE,Ls,Rs")); cpl.set_main_sound_sample_rate(48000); cpl.set_main_picture_stored_area(dcp::Size(1998, 1080)); cpl.set_main_picture_active_area(dcp::Size(1998, 1080)); @@ -197,7 +197,7 @@ check_mca_descriptors(int suffix, vector extra_active_channels, ve dcp::CPL cpl("", dcp::ContentKind::FEATURE, dcp::Standard::SMPTE); cpl.add(reel); - cpl.set_main_sound_configuration("51/L,R,C,LFE,Ls,Rs"); + cpl.set_main_sound_configuration(dcp::MainSoundConfiguration("51/L,R,C,LFE,Ls,Rs")); cpl.set_main_sound_sample_rate(48000); cpl.set_main_picture_stored_area(dcp::Size(1998, 1080)); cpl.set_main_picture_active_area(dcp::Size(1998, 1080)); -- cgit v1.2.3