summaryrefslogtreecommitdiff
path: root/tests/test6/compute.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test6/compute.h')
-rw-r--r--tests/test6/compute.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/test6/compute.h b/tests/test6/compute.h
new file mode 100644
index 0000000..d663ba5
--- /dev/null
+++ b/tests/test6/compute.h
@@ -0,0 +1,11 @@
+#ifndef COMPUTE_H
+#define COMPUTE_H
+#include <stdlib.h> // for size_t
+#include <stdio.h> // for printf
+
+float compute_level(const float *data, size_t nsamples, int rate);
+void audio2hsv_1(int audio_level, int *light_h, int *light_s, int *light_v);
+void hsv2rgb(int h, int s, int v, int *r, int *g, int *b);
+
+#endif
+