mirror of
https://github.com/alsa-project/alsa-tools.git
synced 2026-02-20 01:40:15 -05:00
Added ac3dec 0.6.1 with native ALSA driver.
This commit is contained in:
parent
f2d80b5b5d
commit
28ff64db0a
50 changed files with 6094 additions and 0 deletions
38
ac3dec/test/imdct_test.c
Normal file
38
ac3dec/test/imdct_test.c
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
/*
|
||||
* imdct_test.c
|
||||
*
|
||||
* Aaron Holtzman - May 1999
|
||||
*
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include "ac3.h"
|
||||
#include "ac3_internal.h"
|
||||
#include "imdct.h"
|
||||
|
||||
static stream_samples_t samples;
|
||||
static bsi_t bsi;
|
||||
static audblk_t audblk;
|
||||
|
||||
int main(void)
|
||||
{
|
||||
int i;
|
||||
|
||||
samples[0][20] = 0.4;
|
||||
samples[0][40] = 0.4;
|
||||
samples[0][30] = 1.0;
|
||||
|
||||
|
||||
imdct_init();
|
||||
bsi.nfchans = 1;
|
||||
|
||||
imdct(&bsi,&audblk,samples);
|
||||
|
||||
|
||||
for(i=0;i<256;i++)
|
||||
printf("%1.8f\n",samples[0][i]);
|
||||
|
||||
return 0;
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue