summaryrefslogtreecommitdiff
path: root/test/test.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-03-16 19:51:27 +0100
committerCarl Hetherington <cth@carlh.net>2023-03-16 19:52:06 +0100
commitc1d296b163ddf88a5b387f98e7e77988a242a996 (patch)
tree4edbcca02dd8bfebdd9530eaad7004dfbb79d125 /test/test.cc
parent53b444191fddd72416647ec9d24aff1e317a1824 (diff)
Specify number of channels in the data passed to SoundAssetWriter, and pad channels that aren't there.
Diffstat (limited to 'test/test.cc')
-rw-r--r--test/test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test.cc b/test/test.cc
index fb4f48c5..1b23b177 100644
--- a/test/test.cc
+++ b/test/test.cc
@@ -312,7 +312,7 @@ simple_sound(boost::filesystem::path path, string suffix, dcp::MXFMetadata mxf_m
}
for (auto i = 0; i < frames; ++i) {
- sound_writer->write (silence, samples_per_frame);
+ sound_writer->write(silence, channels, samples_per_frame);
}
sound_writer->finalize ();