/* Final part of subpacket decoding: Apply modulated lapped transform, gain compensation, clip and convert to integer. */
static void mlt_compensate_output(COOKContext *q, float *decode_buffer, cook_gains *gains, float *previous_buffer, int16_t *out, int chan)
/* Final part of subpacket decoding: Apply modulated lapped transform, gain compensation, clip and convert to integer. */
static void mlt_compensate_output(COOKContext *q, float *decode_buffer, cook_gains *gains, float *previous_buffer, int16_t *out, int chan)
{
    imlt_gain(q, decode_buffer, gains, previous_buffer);
    q->saturate_output (q, chan, out);
}