Merge branch 'master' of ssh://git.carlh.net/home/carl/git/dcpomatic
[dcpomatic.git] / test / audio_delay_test.cc
index a455110b8f6f6ba4d62ab9db76d4aab238af4592..07113edaca6a069fa5fdcff6b686f06cba2c90ab 100644 (file)
@@ -18,7 +18,7 @@
 */
 
 /** @file  test/audio_delay_test.cc
- *  @brief Test encode using some SndfileContents which have audio delays.
+ *  @brief Test encode using some FFmpegContents which have audio delays.
  *
  *  The output is checked algorithmically using knowledge of the input.
  */
 #include <dcp/reel.h>
 #include <dcp/sound_asset.h>
 #include <dcp/reel_sound_asset.h>
-#include "lib/sndfile_content.h"
+#include "lib/ffmpeg_content.h"
 #include "lib/dcp_content_type.h"
 #include "lib/ratio.h"
 #include "lib/film.h"
+#include "lib/audio_content.h"
 #include "test.h"
 #include <iostream>
 
@@ -52,10 +53,10 @@ void test_audio_delay (int delay_in_ms)
        film->set_container (Ratio::from_id ("185"));
        film->set_name (film_name);
 
-       shared_ptr<SndfileContent> content (new SndfileContent (film, "test/data/staircase.wav"));
-       content->set_audio_delay (delay_in_ms);
+       shared_ptr<FFmpegContent> content (new FFmpegContent (film, "test/data/staircase.wav"));
        film->examine_and_add_content (content);
        wait_for_jobs ();
+       content->audio->set_delay (delay_in_ms);
 
        film->make_dcp ();
        wait_for_jobs ();