摘要:
//初始化mad_stream_init(&pDecoder->stream);mad_frame_init(&pDecoder->frame);mad_timer_reset(&(pDecoder->timer));mad_synth_init(&pDecoder->synth);mad_stream_options(&pDecoder->stream, MAD_OPTION_IGNORECRC);//解码过程mad_stream_buffer(stream, pBuffer, mlength);while(1){ if( 阅读全文
摘要:
//初始化操作mpg123_init();//初始化库m = mpg123_new(NULL, &ret);//创建对象mpg123_param(m, MPG123_VERBOSE, 2, 0);//解码设置mpg123_open_feed(m);//打开//解码操作ret = mpg123_decode(m,buf,len,out,OUTBUFF,&size);//解码mpg123_getformat(m, &rate, &channels, &enc);//关闭接口mpg123_delete(m);mpg123_exit(); 以上代码我只是添加一些 阅读全文