]> git.proxmox.com Git - qemu.git/blobdiff - audio/sdlaudio.c
audio: internal API change
[qemu.git] / audio / sdlaudio.c
index 250c7aefa69667da5c65c02225c175bbd42d09bb..8e7e5cb70b014b9464dfdd62263ee807c523217b 100644 (file)
@@ -282,9 +282,9 @@ static int sdl_write_out (SWVoiceOut *sw, void *buf, int len)
     return audio_pcm_sw_write (sw, buf, len);
 }
 
-static int sdl_run_out (HWVoiceOut *hw)
+static int sdl_run_out (HWVoiceOut *hw, int live)
 {
-    int decr, live;
+    int decr;
     SDLVoiceOut *sdl = (SDLVoiceOut *) hw;
     SDLAudioState *s = &glob_sdl;
 
@@ -292,8 +292,6 @@ static int sdl_run_out (HWVoiceOut *hw)
         return 0;
     }
 
-    live = audio_pcm_hw_get_live_out (hw);
-
     if (sdl->decr > live) {
         ldebug ("sdl->decr %d live %d sdl->live %d\n",
                 sdl->decr,