summaryrefslogtreecommitdiff
path: root/test/sync_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/sync_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/sync_test.cc')
-rw-r--r--test/sync_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/sync_test.cc b/test/sync_test.cc
index 79e678b5..ba235bd4 100644
--- a/test/sync_test.cc
+++ b/test/sync_test.cc
@@ -135,7 +135,7 @@ BOOST_AUTO_TEST_CASE (sync_test2)
}
}
- writer->write (junk, frames);
+ writer->write(junk, channels, frames);
for (int i = 0; i < channels; ++i) {
delete[] junk[i];
}