/* arbitrary settings and spec-mandated numbers get filled in here */ int vorbis_analysis_init(vorbis_dsp_state *v,vorbis_info *vi){ private_state *b=NULL; if(_vds_shared_init(v,vi,1))return 1; b=v->backend_state; b->psy_g_look=_vp_global_look(vi); /* Init (added by aoyumi) */ b->mblock = _ogg_calloc((2048*vi->channels), sizeof(*b->mblock)); b->tblock = _ogg_calloc((256*vi->channels), sizeof(*b->tblock)); b->lownoise_compand_level = _ogg_calloc(vi->channels, sizeof(*b->lownoise_compand_level)); b->impadnum = 0; /* Initialize the envelope state storage */ b->ve=_ogg_calloc(1,sizeof(*b->ve)); _ve_envelope_init(b->ve,vi); vorbis_bitrate_init(vi,&b->bms); /* compressed audio packets start after the headers with sequence number 3 */ v->sequence=3; return(0); }
int vorbis_synthesis_init(vorbis_dsp_state *v,vorbis_info *vi){ if(_vds_shared_init(v,vi,0)){ vorbis_dsp_clear(v); return 1; } vorbis_synthesis_restart(v); return 0; }
int vorbis_synthesis_init(vorbis_dsp_state *v,vorbis_info *vi) { if(_vds_shared_init(v,vi)<0) return -1; vorbis_synthesis_restart(v,vi); return(0); }
int vorbis_synthesis_init(vorbis_dsp_state *v,vorbis_info *vi){ _vds_shared_init(v,vi,0); v->pcm_returned=-1; v->granulepos=-1; v->sequence=-1; return(0); }
/* arbitrary settings and spec-mandated numbers get filled in here */ int vorbis_analysis_init(vorbis_dsp_state *v,vorbis_info *vi){ backend_lookup_state *b=NULL; _vds_shared_init(v,vi,1); b=v->backend_state; b->psy_g_look=_vp_global_look(vi); /* Initialize the envelope state storage */ b->ve=_ogg_calloc(1,sizeof(envelope_lookup)); _ve_envelope_init(b->ve,vi); return(0); }
/* arbitrary settings and spec-mandated numbers get filled in here */ int vorbis_analysis_init(vorbis_dsp_state *v,vorbis_info *vi){ private_state *b=NULL; if(_vds_shared_init(v,vi,1))return 1; b=v->backend_state; b->psy_g_look=_vp_global_look(vi); /* Initialize the envelope state storage */ b->ve=_ogg_calloc(1,sizeof(*b->ve)); _ve_envelope_init(b->ve,vi); vorbis_bitrate_init(vi,&b->bms); return(0); }
/* arbitrary settings and spec-mandated numbers get filled in here */ int vorbis_analysis_init(vorbis_dsp_state *v,vorbis_info *vi){ private_state *b=NULL; if(_vds_shared_init(v,vi,1))return 1; b=v->backend_state; b->psy_g_look=_vp_global_look(vi); /* Initialize the envelope state storage */ b->ve=_ogg_calloc(1,sizeof(*b->ve)); _ve_envelope_init(b->ve,vi); vorbis_bitrate_init(vi,&b->bms); /* compressed audio packets start after the headers with sequence number 3 */ v->sequence=3; return(0); }