Improve layout of drive-wipe warning dialogue.
[dcpomatic.git] / test / torture_test.cc
index 5525eb081cf2106bf0762f1099c327e7c2bef782..764491c0a63ea5d31af368d41411b660b8f56934 100644 (file)
@@ -45,6 +45,7 @@ using std::list;
 using std::cout;
 using boost::shared_ptr;
 using boost::dynamic_pointer_cast;
+using namespace dcpomatic;
 
 /** Test start/end trim and positioning of some audio content */
 BOOST_AUTO_TEST_CASE (torture_test1)
@@ -55,7 +56,7 @@ BOOST_AUTO_TEST_CASE (torture_test1)
        film->set_container (Ratio::from_id ("185"));
        film->set_sequence (false);
 
-       /* Staircase at an offset of 2000 samples, trimmed both start and end, with a gain of 6dB */
+       /* Staircase at an offset of 2000 samples, trimmed both start and end, with a gain of exactly 2 (linear) */
        shared_ptr<Content> staircase = content_factory("test/data/staircase.wav").front ();
        film->examine_and_add_content (staircase);
        BOOST_REQUIRE (!wait_for_jobs());
@@ -64,7 +65,7 @@ BOOST_AUTO_TEST_CASE (torture_test1)
        staircase->set_trim_end (ContentTime::from_frames (35, 48000));
        staircase->audio->set_gain (20 * log10(2));
 
-       /* And again at an offset of 50000 samples, trimmed both start and end, with a gain of 6dB */
+       /* And again at an offset of 50000 samples, trimmed both start and end, with a gain of exactly 2 (linear) */
        staircase = content_factory("test/data/staircase.wav").front ();
        film->examine_and_add_content (staircase);
        BOOST_REQUIRE (!wait_for_jobs());