From b013e081750203b795c4cdd0496110693f439ab3 Mon Sep 17 00:00:00 2001 From: waker Date: Thu, 25 Oct 2012 21:51:08 +0200 Subject: new fft code from audacious, now spectrum analyzer looks correctly --- fft.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 fft.h (limited to 'fft.h') diff --git a/fft.h b/fft.h new file mode 100644 index 00000000..bb8cba3e --- /dev/null +++ b/fft.h @@ -0,0 +1,25 @@ +/* + * fft.h + * Copyright 2011 John Lindgren + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions, and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions, and the following disclaimer in the documentation + * provided with the distribution. + * + * This software is provided "as is" and without any warranty, express or + * implied. In no event shall the authors be liable for any damages arising from + * the use of this software. + */ + +#ifndef AUDACIOUS_FFT_H +#define AUDACIOUS_FFT_H + +void calc_freq (const float data[512], float freq[256]); + +#endif -- cgit v1.2.3