Back-port v2's rename and slight extension of FrameRateConversion.
[dcpomatic.git] / test / audio_delay_test.cc
index 5574bd627a94cf98487a2154814560aa4bc6b2ee..77243ea6d0e46d04b56dbeb34c33b5120977efc5 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)
@@ -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++);