Speculative support for multi-part subtitles (#709).
[dcpomatic.git] / test / audio_delay_test.cc
index 05384873f850a46340a2de918fdb8f0cd226310f..a455110b8f6f6ba4d62ab9db76d4aab238af4592 100644 (file)
@@ -34,6 +34,7 @@
 #include "lib/ratio.h"
 #include "lib/film.h"
 #include "test.h"
+#include <iostream>
 
 using std::string;
 using std::cout;
@@ -44,7 +45,7 @@ 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"));
@@ -78,7 +79,7 @@ void test_audio_delay (int delay_in_ms)
        while (n < sound_asset->asset()->intrinsic_duration()) {
                shared_ptr<const dcp::SoundFrame> sound_frame = sound_asset->asset()->get_frame (frame++);
                uint8_t const * d = sound_frame->data ();
-               
+
                for (int i = 0; i < sound_frame->size(); i += (3 * sound_asset->asset()->channels())) {
 
                        /* Mono input so it will appear on centre */