mirror of
https://github.com/mborgerding/kissfft.git
synced 2025-07-19 13:34:21 -04:00
fftnd now uses forward struct declaration
This commit is contained in:
@ -133,12 +133,12 @@ void transform_signal()
|
||||
CHECKNULL( avgbuf=(kiss_fft_cpx*)malloc(sizeof(kiss_fft_cpx)*nfreqs ) );
|
||||
|
||||
while ( ( n = fread(inbuf,sizeof(short)*2,nfft,fin) ) == nfft ) {
|
||||
//pack the shorts
|
||||
/* pack the shorts */
|
||||
for (i=0;i<nfft;++i){
|
||||
tbuf[i] = inbuf[2*i] + inbuf[2*i+1];
|
||||
}
|
||||
|
||||
// do FFT
|
||||
/* do FFT */
|
||||
kiss_fftr(cfg,tbuf,fbuf);
|
||||
|
||||
if (remove_dc) {
|
||||
|
Reference in New Issue
Block a user