Decoder_State*st;/* used for bitstream handling */
#ifdef FLOAT_INTERFACE_DEC_REND
float*output[MAX_OUTPUT_CHANNELS];
floatoutputMemory[MAX_OUTPUT_CHANNELS*L_FRAME48k];/* TODO(sgi): find a nicer solution */
#else
floatoutput[MAX_OUTPUT_CHANNELS][L_FRAME48k];/* 'float' buffer for output synthesis, MAX_OUTPUT_CHANNELS channels *//* IVAS_fmToDo: buffer can be allocated dynamically based on the actual number of output channels */
#endif
@@ -118,8 +119,11 @@ ivas_error ivas_dec(
*
* Lib user only provides the mono buffer, so additional space needs to be allocated within the library
* for the first step when `num_channels(bitstream_format) > num_channels(output_format)`.
*
* Currently this is solved by allocating `outputMemory` as the underlying buffer of `output` and
* copying from `outputMemory` to `data` at the end of this function.