summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-11-21 14:00:17 +0100
committerCarl Hetherington <cth@carlh.net>2022-11-26 00:09:27 +0100
commit26a8f0c778a4abbe12a5a461dc457aa513773de3 (patch)
treea39e9960aa837e7a8f94cb12d87aa01fec185779 /test
parent9e49b5f78d1150f75a6016b4f01e2645a7c023b0 (diff)
Add failing test for #2373.
Diffstat (limited to 'test')
m---------test/data0
-rw-r--r--test/player_test.cc18
2 files changed, 18 insertions, 0 deletions
diff --git a/test/data b/test/data
-Subproject c90c715357bf46d99021bd09b4d90d2f7125f6b
+Subproject d13024105c42ea0019c991d6d99a4b6ebb9bf77
diff --git a/test/player_test.cc b/test/player_test.cc
index 1cab293f1..e0f0d1ff0 100644
--- a/test/player_test.cc
+++ b/test/player_test.cc
@@ -26,6 +26,7 @@
#include "lib/audio_buffers.h"
+#include "lib/audio_content.h"
#include "lib/butler.h"
#include "lib/compose.hpp"
#include "lib/config.h"
@@ -557,3 +558,20 @@ BOOST_AUTO_TEST_CASE(multiple_sound_files_bug)
check_mxf_audio_file(TestPaths::private_data() / "kook" / "reference.mxf", dcp_file(film, "pcm_"));
}
+
+BOOST_AUTO_TEST_CASE(trimmed_sound_mix_bug_13)
+{
+ auto A = content_factory("test/data/sine_16_48_440_10.wav").front();
+ auto B = content_factory("test/data/sine_16_44.1_440_10.wav").front();
+ auto film = new_test_film2("trimmed_sound_mix_bug_13", { A, B });
+
+ A->set_position(film, DCPTime());
+ A->audio->set_gain(-12);
+ B->set_position(film, DCPTime());
+ B->audio->set_gain(-12);
+ B->set_trim_start(ContentTime(13));
+
+ make_and_verify_dcp(film, { dcp::VerificationNote::Code::MISSING_CPL_METADATA });
+ check_mxf_audio_file("test/data/trimmed_sound_mix_bug_13.mxf", dcp_file(film, "pcm_"));
+}
+