Mercurial > audlegacy
comparison src/audacious/ui_main.c @ 3677:30ef1287da19
Seperate the 10hz loop dependent code from the rest of the remaining polling loop.
Also change the primary polling loop to 100hz (but really the rest can mostly be done with callbacks, or selectively).
author | William Pitcock <nenolod@atheme.org> |
---|---|
date | Mon, 01 Oct 2007 00:41:25 -0500 |
parents | 9e4edc01a0e3 |
children | e82ad057d1db |
comparison
equal
deleted
inserted
replaced
3676:4920d6d4ac6e | 3677:30ef1287da19 |
---|---|
2664 static gboolean | 2664 static gboolean |
2665 mainwin_idle_func(gpointer data) | 2665 mainwin_idle_func(gpointer data) |
2666 { | 2666 { |
2667 static gint count = 0; | 2667 static gint count = 0; |
2668 | 2668 |
2669 if (playback_get_playing()) | |
2670 input_update_vis(playback_get_time()); | |
2671 | |
2672 GDK_THREADS_ENTER(); | 2669 GDK_THREADS_ENTER(); |
2673 | 2670 |
2674 if (!count) { | 2671 if (!count) { |
2675 read_volume(VOLSET_UPDATE); | 2672 read_volume(VOLSET_UPDATE); |
2676 count = 10; | 2673 count = 10; |