From 70958d6e6d40802c0f6ac0ed55bf704fbe2c9fc3 Mon Sep 17 00:00:00 2001 From: Ludovic Pouzenc Date: Fri, 1 Jun 2012 20:21:08 +0000 Subject: Ecriture du test5 : intégration de PulseAudio dans le code du test4. Le squelette est là, l'initialisation du contexte pulse audio aussi. Reste : ouvrir les flux, écrire le callback pulse qui récupère le niveau sonore (avec timing si possible) et qui appelle le callback applicatif du test5.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: file:///var/svn/2012-violon-leds/trunk@9 6be1fa4d-33ac-4c33-becc-79fcb3794bb6 --- tests/test5/compute.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tests/test5/compute.h (limited to 'tests/test5/compute.h') diff --git a/tests/test5/compute.h b/tests/test5/compute.h new file mode 100644 index 0000000..2454e56 --- /dev/null +++ b/tests/test5/compute.h @@ -0,0 +1,10 @@ +#ifndef COMPUTE_H +#define COMPUTE_H + +#include + +void audio2hsv_1(gint audio_level, gint *light_h, gint *light_s, gint *light_v); +void hsv2rgb(gint h, gint s, gint v, gint *r, gint *g, gint *b); + +#endif + -- cgit v1.2.3