*/
+#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);
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++);