mlt_compensate_output(COOKContext *q, float *decode_buffer,

                      cook_gains *gains, float *previous_buffer,

                      int16_t *out, int chan)

{

    int j;



    cook_imlt(q, decode_buffer, q->mono_mdct_output);

    gain_compensate(q, gains, previous_buffer);



    /* Clip and convert floats to 16 bits.

     */

    for (j = 0; j < q->samples_per_channel; j++) {

        out[chan + q->nb_channels * j] =

          av_clip(lrintf(q->mono_mdct_output[j]), -32768, 32767);

    }

}

mlt_compensate_output(COOKContext *q, float *decode_buffer,

                      cook_gains *gains, float *previous_buffer,

                      int16_t *out, int chan)

{

    int j;



    cook_imlt(q, decode_buffer, q->mono_mdct_output);

    gain_compensate(q, gains, previous_buffer);



    



    for (j = 0; j < q->samples_per_channel; j++) {

        out[chan + q->nb_channels * j] =

          av_clip(lrintf(q->mono_mdct_output[j]), -32768, 32767);

    }

}

FUNC_0(COOKContext *VAR_0, float *VAR_1,

                      cook_gains *VAR_2, float *VAR_3,

                      int16_t *VAR_4, int VAR_5)

{

    int VAR_6;



    cook_imlt(VAR_0, VAR_1, VAR_0->mono_mdct_output);

    gain_compensate(VAR_0, VAR_2, VAR_3);



    



    for (VAR_6 = 0; VAR_6 < VAR_0->samples_per_channel; VAR_6++) {

        VAR_4[VAR_5 + VAR_0->nb_channels * VAR_6] =

          av_clip(lrintf(VAR_0->mono_mdct_output[VAR_6]), -32768, 32767);

    }

}

FUNC_0(COOKContext *VAR_0, float *VAR_1,
cook_gains *VAR_2, float *VAR_3,
int16_t *VAR_4, int VAR_5)
{ int VAR_6; cook_imlt(VAR_0, VAR_1, VAR_0->mono_mdct_output); gain_compensate(VAR_0, VAR_2, VAR_3); for (VAR_6 = 0; VAR_6 < VAR_0->samples_per_channel; VAR_6++) { VAR_4[VAR_5 + VAR_0->nb_channels * VAR_6] =
av_clip(lrintf(VAR_0->mono_mdct_output[VAR_6]), -32768, 32767); } }