summaryrefslogtreecommitdiff
path: root/tests/test6/compute.h
blob: d663ba5236d7f3d90721ac3d8e799bc96b4cf6ba (plain)
1
2
3
4
5
6
7
8
9
10
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