summaryrefslogtreecommitdiff
path: root/test/audio_decoder_test.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-07-08 22:39:10 +0100
committerCarl Hetherington <cth@carlh.net>2016-07-08 22:39:10 +0100
commit0c1abc8927cf7361ebd417944d337bff4b5c7e41 (patch)
tree98e233b71a1b739426e3221787e206c1b8a5bcce /test/audio_decoder_test.cc
parent02cc8c7680381c123a31c23a43f6b34a04c2115a (diff)
Test start-trim of audio-only content.
Diffstat (limited to 'test/audio_decoder_test.cc')
-rw-r--r--test/audio_decoder_test.cc18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/audio_decoder_test.cc b/test/audio_decoder_test.cc
index b71fd22c8..273d04344 100644
--- a/test/audio_decoder_test.cc
+++ b/test/audio_decoder_test.cc
@@ -26,6 +26,9 @@
#include "lib/content.h"
#include "lib/audio_decoder.h"
#include "lib/audio_content.h"
+#include "lib/content_factory.h"
+#include "lib/dcp_content_type.h"
+#include "lib/ratio.h"
#include "lib/film.h"
#include <boost/test/unit_test.hpp>
#include <cassert>
@@ -149,3 +152,18 @@ BOOST_AUTO_TEST_CASE (audio_decoder_get_audio_test)
}
}
}
+
+BOOST_AUTO_TEST_CASE (audio_decoder_test)
+{
+ shared_ptr<Film> film = new_test_film ("analyse_audio_test");
+ film->set_container (Ratio::from_id ("185"));
+ film->set_dcp_content_type (DCPContentType::from_isdcf_name ("TLR"));
+ film->set_name ("frobozz");
+ shared_ptr<Content> content = content_factory (film, private_data / "20 The Wedding Convoy Song.m4a");
+ film->examine_and_add_content (content);
+ wait_for_jobs ();
+
+ content->set_trim_start (ContentTime::from_seconds (60));
+ film->make_dcp ();
+ BOOST_CHECK (!wait_for_jobs ());
+}