summaryrefslogtreecommitdiff
path: root/tests/test5/capture.h
diff options
context:
space:
mode:
authorLudovic Pouzenc <ludovic@pouzenc.fr>2012-06-01 20:21:08 +0000
committerLudovic Pouzenc <ludovic@pouzenc.fr>2012-06-01 20:21:08 +0000
commit70958d6e6d40802c0f6ac0ed55bf704fbe2c9fc3 (patch)
treecb73f0e4552b23eb988a8c3b12d442933f69113b /tests/test5/capture.h
parentf84862993fca45ffb3190d8e3ca0ae73ad4f2942 (diff)
download2012-violon-leds-70958d6e6d40802c0f6ac0ed55bf704fbe2c9fc3.tar.gz
2012-violon-leds-70958d6e6d40802c0f6ac0ed55bf704fbe2c9fc3.tar.bz2
2012-violon-leds-70958d6e6d40802c0f6ac0ed55bf704fbe2c9fc3.zip
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 git-svn-id: file:///var/svn/2012-violon-leds/trunk@9 6be1fa4d-33ac-4c33-becc-79fcb3794bb6
Diffstat (limited to 'tests/test5/capture.h')
-rw-r--r--tests/test5/capture.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/test5/capture.h b/tests/test5/capture.h
new file mode 100644
index 0000000..2acbe09
--- /dev/null
+++ b/tests/test5/capture.h
@@ -0,0 +1,9 @@
+#ifndef CAPTURE_H
+#define CAPTURE_H
+#include <gtk/gtk.h>
+
+typedef void(* capture_sound_level_cb_t)(gint sound_level, void *userdata);
+
+void audio_thread(void *args);
+
+#endif /*CAPTURE_H*/