diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-03-16 19:51:27 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-03-16 19:52:06 +0100 |
| commit | c1d296b163ddf88a5b387f98e7e77988a242a996 (patch) | |
| tree | 4edbcca02dd8bfebdd9530eaad7004dfbb79d125 /examples | |
| parent | 53b444191fddd72416647ec9d24aff1e317a1824 (diff) | |
Specify number of channels in the data passed to SoundAssetWriter, and pad channels that aren't there.
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/make_dcp.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/make_dcp.cc b/examples/make_dcp.cc index bbe29545..7f387db2 100644 --- a/examples/make_dcp.cc +++ b/examples/make_dcp.cc @@ -86,7 +86,7 @@ main () std::array<float*, 2> audio; audio[0] = left.data(); audio[1] = right.data(); - sound_writer->write (audio.data(), 48000); + sound_writer->write(audio.data(), 2, 48000); /* And finish off */ sound_writer->finalize (); |
