[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 04/23] sdlaudio: don't start playback in init routine
From: |
Volker Rümelin |
Subject: |
[PATCH 04/23] sdlaudio: don't start playback in init routine |
Date: |
Sun, 10 Jan 2021 11:02:20 +0100 |
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>
---
audio/sdlaudio.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/audio/sdlaudio.c b/audio/sdlaudio.c
index 431bfcfddd..68126a99ab 100644
--- a/audio/sdlaudio.c
+++ b/audio/sdlaudio.c
@@ -312,7 +312,6 @@ static int sdl_init_out(HWVoiceOut *hw, struct audsettings
*as,
s->initialized = 1;
s->exit = 0;
- SDL_PauseAudio (0);
return 0;
}
--
2.26.2
- [PATCH 00/23] next round of audio patches, Volker Rümelin, 2021/01/10
- [PATCH 02/23] audio: fix bit-rotted code, Volker Rümelin, 2021/01/10
- [PATCH 01/23] sdlaudio: remove leftover SDL1.2 code, Volker Rümelin, 2021/01/10
- [PATCH 04/23] sdlaudio: don't start playback in init routine,
Volker Rümelin <=
- [PATCH 05/23] sdlaudio: always clear the sample buffer, Volker Rümelin, 2021/01/10
- [PATCH 06/23] sdlaudio: fill remaining sample buffer with silence, Volker Rümelin, 2021/01/10
- [PATCH 07/23] sdlaudio: replace legacy functions with modern ones, Volker Rümelin, 2021/01/10
- [PATCH 03/23] sdlaudio: add -audiodev sdl,out.buffer-count option, Volker Rümelin, 2021/01/10