summaryrefslogtreecommitdiff
path: root/tests/test4/test4.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test4/test4.c')
-rw-r--r--tests/test4/test4.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test4/test4.c b/tests/test4/test4.c
index 787f7c2..df38794 100644
--- a/tests/test4/test4.c
+++ b/tests/test4/test4.c
@@ -18,10 +18,10 @@ void audio_thread(void *args) {
while(1) {
// Dummy code for audio capture
*audio_vumeter_val=min+rand()/(float)RAND_MAX*(max-min);
- usleep(10);
+ usleep(10000);
// Transfert Function
- audio2hsv_1(*audio_vumeter_val,*light_h,*light_s,*light_v);
+ audio2hsv_1(*audio_vumeter_val,light_h,light_s,light_v);
// Conversion
hsv2rgb(*light_h,*light_s,*light_v,light_r,light_g,light_b);
@@ -34,7 +34,7 @@ void audio_thread(void *args) {
int main (int argc, char **argv)
{
GtkWidget *mainwin;
- gint vals_for_vumeters[7]={0,0,0,0,0,0}; //sound,h,s,v,r,g,b
+ gint vals_for_vumeters[7]={0,0,0,0,0,0,0}; //sound,h,s,v,r,g,b
pthread_t audio_analyzer;
@@ -47,7 +47,7 @@ int main (int argc, char **argv)
gtk_widget_show_all (mainwin);
pthread_create (&audio_analyzer, (void *)NULL, (void *)audio_thread, (void *)vals_for_vumeters);
- g_timeout_add (33, win_main_update_vumeters, (gpointer)vals_for_vumeters);
+ g_timeout_add (10, win_main_update_vumeters, (gpointer)vals_for_vumeters);
gtk_main ();
gdk_threads_leave();