diff options
Diffstat (limited to 'audio/audio.c')
-rw-r--r-- | audio/audio.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/audio/audio.c b/audio/audio.c index 38267695f7..bc9ac25c08 100644 --- a/audio/audio.c +++ b/audio/audio.c @@ -837,7 +837,7 @@ static void audio_timer (void *opaque) } s->timer_last = now; - audio_run("timer"); + audio_run(s, "timer"); audio_reset_timer(s); } @@ -1239,15 +1239,11 @@ static void audio_run_capture (AudioState *s) } } -void audio_run (const char *msg) +void audio_run(AudioState *s, const char *msg) { - AudioState *s; - - QTAILQ_FOREACH(s, &audio_states, list) { - audio_run_out(s); - audio_run_in(s); - audio_run_capture(s); - } + audio_run_out(s); + audio_run_in(s); + audio_run_capture(s); #ifdef DEBUG_POLL { |