X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=test%2Fsilence_padding_test.cc;h=25f2d80c94d1c1e7a9446b6476ccde0349a669ef;hb=937b96045830a2326daff83b70b892f2d25244ff;hp=e4472ad4fef042f52f4822e56f5b82b2290a2009;hpb=b666a794a130386bc01ede2143ef40bd6973eb32;p=dcpomatic.git diff --git a/test/silence_padding_test.cc b/test/silence_padding_test.cc index e4472ad4f..25f2d80c9 100644 --- a/test/silence_padding_test.cc +++ b/test/silence_padding_test.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2013 Carl Hetherington + Copyright (C) 2013-2014 Carl Hetherington This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -17,6 +17,10 @@ */ +/** @file test/silence_padding_test.cc + * @brief Test the padding (with silence) of a mono source to a 6-channel DCP. + */ + #include #include #include @@ -34,16 +38,17 @@ using std::string; using boost::lexical_cast; using boost::shared_ptr; -static void test_silence_padding (int channels) +static void +test_silence_padding (int channels) { string const film_name = "silence_padding_test_" + lexical_cast (channels); shared_ptr film = new_test_film (film_name); - film->set_dcp_content_type (DCPContentType::from_dci_name ("FTR")); + film->set_dcp_content_type (DCPContentType::from_isdcf_name ("FTR")); film->set_container (Ratio::from_id ("185")); film->set_name (film_name); shared_ptr content (new SndfileContent (film, "test/data/staircase.wav")); - film->examine_and_add_content (content); + film->examine_and_add_content (content, true); wait_for_jobs (); film->set_audio_channels (channels); @@ -116,7 +121,7 @@ static void test_silence_padding (int channels) BOOST_AUTO_TEST_CASE (silence_padding_test) { - for (int i = 1; i < MAX_AUDIO_CHANNELS; ++i) { + for (int i = 1; i < MAX_DCP_AUDIO_CHANNELS; ++i) { test_silence_padding (i); } }