summaryrefslogtreecommitdiff
path: root/test/test.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-01-24 00:54:25 +0100
committerCarl Hetherington <cth@carlh.net>2023-01-24 00:54:25 +0100
commitb489c7ad24303799a32412e160fe27c4e9eddb29 (patch)
tree3dd84a4f5079807fe84c05234c75a8a28e6833e7 /test/test.cc
parent338302bb147396c7956cf658f68c574f56c74fa8 (diff)
Add channels parameter to simple_audio().
Diffstat (limited to 'test/test.cc')
-rw-r--r--test/test.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/test.cc b/test/test.cc
index 450ff514..fb4f48c5 100644
--- a/test/test.cc
+++ b/test/test.cc
@@ -292,10 +292,8 @@ simple_picture (boost::filesystem::path path, string suffix, int frames, optiona
shared_ptr<dcp::SoundAsset>
-simple_sound (boost::filesystem::path path, string suffix, dcp::MXFMetadata mxf_meta, string language, int frames, int sample_rate, optional<dcp::Key> key)
+simple_sound(boost::filesystem::path path, string suffix, dcp::MXFMetadata mxf_meta, string language, int frames, int sample_rate, optional<dcp::Key> key, int channels)
{
- int const channels = 6;
-
/* Set a valid language, then overwrite it, so that the language parameter can be badly formed */
auto ms = make_shared<dcp::SoundAsset>(dcp::Fraction(24, 1), sample_rate, channels, dcp::LanguageTag("en-US"), dcp::Standard::SMPTE);
if (key) {