Explorar o código

sdlaudio: don't start playback in init routine

Every emulated audio device has a way to enable audio playback. Don't
start playback until the guest enables the audio device. This patch
keeps the SDL2 device pause state in sync with hw->enabled.

Signed-off-by: Volker Rümelin <vr_qemu@t-online.de>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Tested-by: Thomas Huth <thuth@redhat.com>
Message-id: 9315afe5-5958-c0b4-ea1e-14769511a9d5@t-online.de
Message-Id: <20210110100239.27588-4-vr_qemu@t-online.de>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Volker Rümelin %!s(int64=4) %!d(string=hai) anos
pai
achega
14cefe14bb
Modificáronse 1 ficheiros con 0 adicións e 1 borrados
  1. 0 1
      audio/sdlaudio.c

+ 0 - 1
audio/sdlaudio.c

@@ -312,7 +312,6 @@ static int sdl_init_out(HWVoiceOut *hw, struct audsettings *as,
 
 
     s->initialized = 1;
     s->initialized = 1;
     s->exit = 0;
     s->exit = 0;
-    SDL_PauseAudio (0);
     return 0;
     return 0;
 }
 }