static void init_gain_table(COOKContext *q) {

    int i;

    q->gain_size_factor = q->samples_per_channel/8;

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

        q->gain_table[i] = pow((double)q->pow2tab[i+52] ,

                               (1.0/(double)q->gain_size_factor));

    }

    memset(&q->gain_copy, 0, sizeof(COOKgain));

    memset(&q->gain_current, 0, sizeof(COOKgain));

    memset(&q->gain_now, 0, sizeof(COOKgain));

    memset(&q->gain_previous, 0, sizeof(COOKgain));

}

static void init_gain_table(COOKContext *q) {

    int i;

    q->gain_size_factor = q->samples_per_channel/8;

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

        q->gain_table[i] = pow((double)q->pow2tab[i+52] ,

                               (1.0/(double)q->gain_size_factor));

    }

    memset(&q->gain_copy, 0, sizeof(COOKgain));

    memset(&q->gain_current, 0, sizeof(COOKgain));

    memset(&q->gain_now, 0, sizeof(COOKgain));

    memset(&q->gain_previous, 0, sizeof(COOKgain));

}

    memset(&q->gain_copy, 0, sizeof(COOKgain));     memset(&q->gain_current, 0, sizeof(COOKgain));     memset(&q->gain_now, 0, sizeof(COOKgain));     memset(&q->gain_previous, 0, sizeof(COOKgain));
static void FUNC_0(COOKContext *VAR_0) {

    int VAR_1;

    VAR_0->gain_size_factor = VAR_0->samples_per_channel/8;

    for (VAR_1=0 ; VAR_1<23 ; VAR_1++) {

        VAR_0->gain_table[VAR_1] = pow((double)VAR_0->pow2tab[VAR_1+52] ,

                               (1.0/(double)VAR_0->gain_size_factor));

    }

    memset(&VAR_0->gain_copy, 0, sizeof(COOKgain));

    memset(&VAR_0->gain_current, 0, sizeof(COOKgain));

    memset(&VAR_0->gain_now, 0, sizeof(COOKgain));

    memset(&VAR_0->gain_previous, 0, sizeof(COOKgain));

}

static void FUNC_0(COOKContext *VAR_0) { int VAR_1; VAR_0->gain_size_factor = VAR_0->samples_per_channel/8; for (VAR_1=0 ; VAR_1<23 ; VAR_1++) { VAR_0->gain_table[VAR_1] = pow((double)VAR_0->pow2tab[VAR_1+52] ,
(1.0/(double)VAR_0->gain_size_factor)); } memset(&VAR_0->gain_copy, 0, sizeof(COOKgain)); memset(&VAR_0->gain_current, 0, sizeof(COOKgain)); memset(&VAR_0->gain_now, 0, sizeof(COOKgain)); memset(&VAR_0->gain_previous, 0, sizeof(COOKgain)); }