sdlaudio: don't start playback in init routine
commit14cefe14bb6450fb8e5b6b1eadd3631c150f119c
authorVolker Rümelin <vr_qemu@t-online.de>
Sun, 10 Jan 2021 10:02:20 +0000 (10 11:02 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 15 Jan 2021 10:25:22 +0000 (15 11:25 +0100)
treeb3436bcde9f472c92cce36d7c6b43292132ebab1
parent5a0926c23fa915f26f66f688e9030ce39fea1e35
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>
audio/sdlaudio.c