*/
/** @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>
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 ();