add support for specifying which apodization functions to use to window data before lpc analysis

This commit is contained in:
Josh Coalson
2006-04-25 06:38:43 +00:00
parent c8dc7a43ec
commit bf0f52c21e
22 changed files with 599 additions and 65 deletions

View File

@@ -45,6 +45,13 @@
#define M_LN2 0.69314718055994530942
#endif
void FLAC__lpc_window_data(const FLAC__real in[], const FLAC__real window[], FLAC__real out[], unsigned data_len)
{
unsigned i;
for(i = 0; i < data_len; i++)
out[i] = in[i] * window[i];
}
void FLAC__lpc_compute_autocorrelation(const FLAC__real data[], unsigned data_len, unsigned lag, FLAC__real autoc[])
{
/* a readable, but slower, version */