Attempted 64-bit compile fix.
[dcpomatic.git] / test / audio_delay_test.cc
index 5574bd627a94cf98487a2154814560aa4bc6b2ee..8ac5f746c8fb46e3621d392f9267297e7e792804 100644 (file)
 
 */
 
+#include <boost/test/unit_test.hpp>
 #include <libdcp/sound_frame.h>
 #include <libdcp/cpl.h>
 #include <libdcp/reel.h>
 #include <libdcp/sound_asset.h>
-#include "sndfile_content.h"
-
+#include "lib/sndfile_content.h"
+#include "lib/dcp_content_type.h"
+#include "lib/ratio.h"
+#include "lib/film.h"
+#include "test.h"
+
+using std::string;
+using std::cout;
 using boost::lexical_cast;
+using boost::shared_ptr;
 
 static
 void test_audio_delay (int 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_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);
 
@@ -57,7 +65,6 @@ void test_audio_delay (int delay_in_ms)
        int frame = 0;
        /* Delay in frames */
        int const delay_in_frames = delay_in_ms * 48000 / 1000;
-       bool done = false;
 
        while (n < sound_asset->intrinsic_duration()) {
                shared_ptr<const libdcp::SoundFrame> sound_frame = sound_asset->get_frame (frame++);