mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 07:54:58 +00:00
Meta: Add support for QEMU 8.2 audio
Still try parsing the now gone "-audio-help" output first, then attempt the new "-audiodev help" if stdout was empty. This fixes support for QEMU 8.2+ audio since "-audio-help" is now an invalid option.
This commit is contained in:
parent
6fe6166607
commit
a768685d16
1 changed files with 8 additions and 2 deletions
10
Meta/run.py
10
Meta/run.py
|
@ -510,9 +510,15 @@ def setup_audio_backend(config: Configuration):
|
|||
capture_output=True,
|
||||
encoding="utf-8",
|
||||
).stdout
|
||||
if "-audiodev id=sdl" in qemu_audio_help:
|
||||
if qemu_audio_help == "":
|
||||
qemu_audio_help = run(
|
||||
[str(config.qemu_binary), "-audiodev", "help"],
|
||||
capture_output=True,
|
||||
encoding="utf-8",
|
||||
).stdout
|
||||
if "sdl" in qemu_audio_help:
|
||||
config.audio_backend = "sdl"
|
||||
elif "-audiodev id=pa" in qemu_audio_help:
|
||||
elif "pa" in qemu_audio_help:
|
||||
config.audio_backend = "pa,timer-period=2000"
|
||||
|
||||
if config.audio_backend is not None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue