Exemplo n.º 1
0
BOOL MPGLIB_Init(PMPSTR mp) 
{
    static int init = 0;

    MPGLIB_Reset(mp);

    if(!init) {
        make_decode_tables(32767);
        init_layer2();
        init_layer3(SBLIMIT);
        init = 1;
    }

    return !0;
}
Exemplo n.º 2
0
BOOL InitMP3(struct mpstr *mp) 
{
	memset(mp,0,sizeof(struct mpstr));

	mp->framesize = 0;
	mp->fsizeold = -1;
	mp->bsize = 0;
	mp->head = mp->tail = NULL;
	mp->fr.single = -1;
	mp->bsnum = 0;
	mp->synth_bo = 1;

	make_decode_tables(32767);
	init_layer3(SBLIMIT);

	return !0;
}
Exemplo n.º 3
0
int InitMP3(struct mpstr *mp)
{
    memset(mp,0,sizeof(struct mpstr));

    initStaticData(&mp->psd);

    mp->framesize = 0;
    mp->fsizeold = -1;
    mp->bsize = 0;
    mp->head = mp->tail = NULL;
    mp->fr.single = -1;
    mp->bsnum = 0;
    mp->synth_bo = 1;

    make_decode_tables(&mp->psd, 32767);
    init_layer3(&mp->psd, SBLIMIT);

    mp->fr.II_sblimit=SBLIMIT;
    init_layer2(&mp->psd);

    return !0;
}