static void adx_decode(ADXContext *c, int16_t *out, const uint8_t *in, int ch)

{

    ADXChannelState *prev = &c->prev[ch];

    GetBitContext gb;

    int scale = AV_RB16(in);

    int i;

    int s0, s1, s2, d;



    init_get_bits(&gb, in + 2, (18 - 2) * 8);

    s1 = prev->s1;

    s2 = prev->s2;

    for (i = 0; i < 32; i++) {

        d  = get_sbits(&gb, 4);

        s0 = (BASEVOL * d * scale + SCALE1 * s1 - SCALE2 * s2) >> 14;

        s2 = s1;

        s1 = av_clip_int16(s0);

        *out = s1;

        out += c->channels;

    }

    prev->s1 = s1;

    prev->s2 = s2;

}

static void adx_decode(ADXContext *c, int16_t *out, const uint8_t *in, int ch)

{

    ADXChannelState *prev = &c->prev[ch];

    GetBitContext gb;

    int scale = AV_RB16(in);

    int i;

    int s0, s1, s2, d;



    init_get_bits(&gb, in + 2, (18 - 2) * 8);

    s1 = prev->s1;

    s2 = prev->s2;

    for (i = 0; i < 32; i++) {

        d  = get_sbits(&gb, 4);

        s0 = (BASEVOL * d * scale + SCALE1 * s1 - SCALE2 * s2) >> 14;

        s2 = s1;

        s1 = av_clip_int16(s0);

        *out = s1;

        out += c->channels;

    }

    prev->s1 = s1;

    prev->s2 = s2;

}

        s0 = (BASEVOL * d * scale + SCALE1 * s1 - SCALE2 * s2) >> 14;
static void FUNC_0(ADXContext *VAR_0, int16_t *VAR_1, const uint8_t *VAR_2, int VAR_3)

{

    ADXChannelState *prev = &VAR_0->prev[VAR_3];

    GetBitContext gb;

    int VAR_4 = AV_RB16(VAR_2);

    int VAR_5;

    int VAR_6, VAR_7, VAR_8, VAR_9;



    init_get_bits(&gb, VAR_2 + 2, (18 - 2) * 8);

    VAR_7 = prev->VAR_7;

    VAR_8 = prev->VAR_8;

    for (VAR_5 = 0; VAR_5 < 32; VAR_5++) {

        VAR_9  = get_sbits(&gb, 4);

        VAR_6 = (BASEVOL * VAR_9 * VAR_4 + SCALE1 * VAR_7 - SCALE2 * VAR_8) >> 14;

        VAR_8 = VAR_7;

        VAR_7 = av_clip_int16(VAR_6);

        *VAR_1 = VAR_7;

        VAR_1 += VAR_0->channels;

    }

    prev->VAR_7 = VAR_7;

    prev->VAR_8 = VAR_8;

}

static void FUNC_0(ADXContext *VAR_0, int16_t *VAR_1, const uint8_t *VAR_2, int VAR_3)
{ ADXChannelState *prev = &VAR_0->prev[VAR_3]; GetBitContext gb; int VAR_4 = AV_RB16(VAR_2); int VAR_5; int VAR_6, VAR_7, VAR_8, VAR_9; init_get_bits(&gb, VAR_2 + 2, (18 - 2) * 8); VAR_7 = prev->VAR_7; VAR_8 = prev->VAR_8; for (VAR_5 = 0; VAR_5 < 32; VAR_5++) { VAR_9  = get_sbits(&gb, 4); VAR_6 = (BASEVOL * VAR_9 * VAR_4 + SCALE1 * VAR_7 - SCALE2 * VAR_8) >> 14; VAR_8 = VAR_7; VAR_7 = av_clip_int16(VAR_6); *VAR_1 = VAR_7; VAR_1 += VAR_0->channels; } prev->VAR_7 = VAR_7; prev->VAR_8 = VAR_8; }