diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2021-07-09 06:25:48 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2021-07-09 06:25:48 +0200 |
commit | 2d641d087fe923c94f3d3c558cb317db1b0041a7 (patch) | |
tree | 5493bac8159b3ca736d5c516c91445c98c14e1ca | |
parent | 20c8385f2e3fc00305396a3aaa74cb1d30cecc8f (diff) | |
download | nncmpp-2d641d087fe923c94f3d3c558cb317db1b0041a7.tar.gz nncmpp-2d641d087fe923c94f3d3c558cb317db1b0041a7.tar.xz nncmpp-2d641d087fe923c94f3d3c558cb317db1b0041a7.zip |
Spectrum analyser: add some useful comments
-rw-r--r-- | nncmpp.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -569,6 +569,9 @@ item_list_resize (struct item_list *self, size_t len) // --- Spectrum analyzer ------------------------------------------------------- +// See http://www.zytrax.com/tech/audio/equalization.html +// for a good write-up about this problem domain + #ifdef WITH_FFTW struct spectrum @@ -809,6 +812,7 @@ spectrum_init (struct spectrum *s, char *format, int bars, struct error **e) if (s->samples < 1) s->samples = 1; + // XXX: we average the channels but might want to average the DFT results if (s->bits == 8) s->decode = spectrum_decode_8; if (s->bits == 16) s->decode = spectrum_decode_16; |