mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 03:55:24 +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
Notes:
sideshowbarker
2024-07-18 08:59:31 +09:00
Author: https://github.com/JamiKettunen Commit: https://github.com/SerenityOS/serenity/commit/a768685d16 Pull-request: https://github.com/SerenityOS/serenity/pull/22460
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
Reference in a new issue