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 /src/sound_asset_writer.h | |
| parent | 53b444191fddd72416647ec9d24aff1e317a1824 (diff) | |
Specify number of channels in the data passed to SoundAssetWriter, and pad channels that aren't there.
Diffstat (limited to 'src/sound_asset_writer.h')
| -rw-r--r-- | src/sound_asset_writer.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sound_asset_writer.h b/src/sound_asset_writer.h index 0435b85f..6d8191c7 100644 --- a/src/sound_asset_writer.h +++ b/src/sound_asset_writer.h @@ -70,9 +70,11 @@ public: ~SoundAssetWriter(); /** @param data Pointer an array of float pointers, one for each channel. + * @param channels Number of channels in data; if this is less than the channels in the asset + * the remaining asset channels will be padded with silence. * @param frames Number of frames i.e. number of floats that are given for each channel. */ - void write (float const * const *, int); + void write(float const * const * data, int channels, int frames); bool finalize () override; |
