mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-29 14:14:45 +03:00
Meta: Make audiodev detection more robust
This fixes audio on Windows as well as Linux systems which don't have SDL. Fixes #8903.
This commit is contained in:
parent
9222064439
commit
8b2e76b838
Notes:
sideshowbarker
2024-07-18 07:43:10 +09:00
Author: https://github.com/gunnarbeutner Commit: https://github.com/SerenityOS/serenity/commit/8b2e76b8387 Pull-request: https://github.com/SerenityOS/serenity/pull/9108 Issue: https://github.com/SerenityOS/serenity/issues/8903
@ -96,8 +96,12 @@ fi
|
||||
|
||||
if [ "$(uname)" = "Darwin" ]; then
|
||||
SERENITY_AUDIO_BACKEND="-audiodev coreaudio,id=snd0"
|
||||
else
|
||||
elif (uname -a | grep -iq WSL) || (uname -a | grep -iq microsoft); then
|
||||
SERENITY_AUDIO_BACKEND="-audiodev dsound,id=snd0"
|
||||
elif "$SERENITY_QEMU_BIN" -audio-help 2>&1 | grep -- "-audiodev id=sdl" >/dev/null; then
|
||||
SERENITY_AUDIO_BACKEND="-audiodev sdl,id=snd0"
|
||||
else
|
||||
SERENITY_AUDIO_BACKEND="-audiodev pa,id=snd0"
|
||||
fi
|
||||
|
||||
SERENITY_SCREENS="${SERENITY_SCREENS:-1}"
|
||||
|
Loading…
Reference in New Issue
Block a user