imdct_test.c
上传用户:aoeyumen
上传日期:2007-01-06
资源大小:3329k
文件大小:1k
- /*
- * bitstream_test.c
- *
- * Aaron Holtzman - May 1999
- *
- */
- #include <stdlib.h>
- #include <stdio.h>
- #include "ac3.h"
- #include "bitstream.h"
- #include "decode.h"
- #include "imdct.h"
- static stream_samples_t samples;
- static stream_coeffs_t coeffs;
- static bsi_t bsi;
- static audblk_t audblk;
- int main(void)
- {
- int i;
- coeffs.fbw[0][20] = 0.4;
- coeffs.fbw[0][40] = 0.4;
- coeffs.fbw[0][30] = 1.0;
- imdct_init();
- bsi.nfchans = 1;
- imdct(&bsi,&audblk,&coeffs,&samples);
- for(i=0;i<512;i++)
- printf("%fn",samples.channel[0][i]);
-
- return 0;
- }