Handle multiple audio streams in a single piece of content
[dcpomatic.git] / test / audio_delay_test.cc
index 0127cc644e0929c0c34ac55551abc101c4e1df2e..63f363114894a4ee119aaf271b8fb36453bcee46 100644 (file)
@@ -43,6 +43,8 @@ using boost::shared_ptr;
 static
 void test_audio_delay (int delay_in_ms)
 {
+       BOOST_TEST_MESSAGE ("Testing delay of " << delay_in_ms);
+       
        string const film_name = "audio_delay_test_" + lexical_cast<string> (delay_in_ms);
        shared_ptr<Film> film = new_test_film (film_name);
        film->set_dcp_content_type (DCPContentType::from_isdcf_name ("FTR"));
@@ -51,7 +53,7 @@ void test_audio_delay (int delay_in_ms)
 
        shared_ptr<SndfileContent> content (new SndfileContent (film, "test/data/staircase.wav"));
        content->set_audio_delay (delay_in_ms);
-       film->examine_and_add_content (content, true);
+       film->examine_and_add_content (content);
        wait_for_jobs ();
 
        film->make_dcp ();
@@ -87,7 +89,7 @@ void test_audio_delay (int delay_in_ms)
                                delayed = 0;
                        }
 
-                       BOOST_CHECK_EQUAL (sample, delayed);
+                       BOOST_REQUIRE_EQUAL (sample, delayed);
                        ++n;
                }
        }