summaryrefslogtreecommitdiff
path: root/fft.h
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2012-10-25 21:51:08 +0200
committerGravatar waker <wakeroid@gmail.com>2012-10-25 21:51:08 +0200
commitb013e081750203b795c4cdd0496110693f439ab3 (patch)
treea6853dbb35a2a81ff22671525bb2bf88f25b6a97 /fft.h
parentd940812fafd1a71837a3bb3f1c1132c7beea5187 (diff)
new fft code from audacious, now spectrum analyzer looks correctly
Diffstat (limited to 'fft.h')
-rw-r--r--fft.h25
1 files changed, 25 insertions, 0 deletions
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