diff options
Diffstat (limited to 'tests/test5/test5.c')
-rw-r--r-- | tests/test5/test5.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test5/test5.c b/tests/test5/test5.c index 809aaa6..9eadb65 100644 --- a/tests/test5/test5.c +++ b/tests/test5/test5.c @@ -34,7 +34,7 @@ int main (int argc, char **argv) { printf("debug : main my_process==%p\n", my_process); printf("debug : main (void *)my_process==%p\n", (void *)my_process); pthread_create (&audio_analyzer, (void *)NULL, (void *)audio_thread, (void *)my_process); - g_timeout_add (100, win_main_update_vumeters, (gpointer)vals_for_vumeters); + g_timeout_add (25, win_main_update_vumeters, (gpointer)vals_for_vumeters); gtk_main (); gdk_threads_leave(); @@ -49,7 +49,7 @@ void my_process(float *data, size_t nsamples, size_t nchan) { sound_level=compute_level(data, nsamples, nchan); // Update sound vumeter value (refreshed asynchronously) - *audio_vumeter_val=sound_level*65535; + *audio_vumeter_val=((int)sound_level*10.f); // Transfert Function audio2hsv_1(*audio_vumeter_val,light_h,light_s,light_v); |