sdlaudio: replace legacy functions with modern ones
commitce31f099fba5ac72834fc96ae6edc41713275989
authorVolker Rümelin <vr_qemu@t-online.de>
Sun, 10 Jan 2021 10:02:23 +0000 (10 11:02 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 15 Jan 2021 10:25:22 +0000 (15 11:25 +0100)
treec5544cd246a1ae8ace75b4aa74e5943319f25666
parente02d178f78d7cff93c3c9b7e3c3ac6822c46c563
sdlaudio: replace legacy functions with modern ones

With the modern audio functions it's possible to add new
features like audio recording.

As a side effect this patch fixes a bug where SDL2 can't be used
on Windows. This bug was reported on the qemu-devel mailing list at

https://lists.nongnu.org/archive/html/qemu-devel/2020-01/msg04043.html

Signed-off-by: Volker Rümelin <vr_qemu@t-online.de>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-id: 9315afe5-5958-c0b4-ea1e-14769511a9d5@t-online.de
Message-Id: <20210110100239.27588-7-vr_qemu@t-online.de>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
audio/sdlaudio.c