Specify number of channels in the data passed to SoundAssetWriter, and pad channels...
[libdcp.git] / src / sound_asset_writer.h
index 0435b85f8dcb13e589cf010d7ab34c5fde42df86..6d8191c7d718fe4e23b360acd5a0ac8addfafabb 100644 (file)
@@ -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;