summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-06-03 12:56:11 +0200
committerCarl Hetherington <cth@carlh.net>2022-06-07 17:01:06 +0200
commit1ff553f6752469b940b5c59e2a619e71736e7611 (patch)
treec1e316ecc9b21a4fb61591f3a984074ec4505d14
parent9dd77451c76d9cf14f62ee110451e74f91424efd (diff)
Remove some cout and tidy up slightly.
-rw-r--r--test/audio_delay_test.cc9
1 files changed, 2 insertions, 7 deletions
diff --git a/test/audio_delay_test.cc b/test/audio_delay_test.cc
index d8d69424b..688186e00 100644
--- a/test/audio_delay_test.cc
+++ b/test/audio_delay_test.cc
@@ -55,13 +55,9 @@ using boost::lexical_cast;
static
void test_audio_delay (int delay_in_ms)
{
- BOOST_TEST_MESSAGE ("Testing delay of " << delay_in_ms);
-
string const film_name = "audio_delay_test_" + lexical_cast<string> (delay_in_ms);
auto content = make_shared<FFmpegContent>("test/data/staircase.wav");
- shared_ptr<Film> film = new_test_film2 (
- film_name, { content }
- );
+ auto film = new_test_film2 (film_name, { content });
content->audio->set_delay (delay_in_ms);
@@ -70,7 +66,6 @@ void test_audio_delay (int delay_in_ms)
boost::filesystem::path path = "build/test";
path /= film_name;
path /= film->dcp_name ();
- std::cout << "Loading " << path.string() << "\n";
dcp::DCP check (path.string ());
check.read ();
@@ -85,7 +80,7 @@ void test_audio_delay (int delay_in_ms)
int const delay_in_frames = delay_in_ms * 48000 / 1000;
while (n < sound_asset->asset()->intrinsic_duration()) {
- shared_ptr<const dcp::SoundFrame> sound_frame = sound_asset->asset()->start_read()->get_frame (frame++);
+ auto sound_frame = sound_asset->asset()->start_read()->get_frame (frame++);
uint8_t const * d = sound_frame->data ();
for (int i = 0; i < sound_frame->size(); i += (3 * sound_asset->asset()->channels())) {