摘要:
//初始化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( 阅读全文
posted @ 2012-03-31 21:44
weinyzhou
阅读(1112)
评论(0)
推荐(0)
摘要:
//初始化操作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(); 以上代码我只是添加一些 阅读全文
posted @ 2012-03-31 21:39
weinyzhou
阅读(3462)
评论(0)
推荐(0)

浙公网安备 33010602011771号