mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-11 08:50:37 +00:00
Meta: Set -audiodev explictly
Unfortunately seems like QEMU tries to use SPICE for audio so we need to explicitly set -audiodev to use either SDL or coreaudio (depending on platorm)
This commit is contained in:
parent
c9118b84b7
commit
4bdd62939a
Notes:
sideshowbarker
2024-07-18 08:02:12 +09:00
1 changed files with 9 additions and 2 deletions
11
Meta/run.sh
11
Meta/run.sh
|
@ -94,6 +94,12 @@ elif "${SERENITY_QEMU_BIN}" -chardev help | grep -iq spicevmc; then
|
|||
SERENITY_SPICE_SERVER_CHARDEV="-chardev spicevmc,id=vdagent,name=vdagent"
|
||||
fi
|
||||
|
||||
if [ "$(uname)" = "Darwin" ]; then
|
||||
SERENITY_AUDIO_BACKEND="-audiodev coreaudio,id=snd0"
|
||||
else
|
||||
SERENITY_AUDIO_BACKEND="-audiodev sdl,id=snd0"
|
||||
fi
|
||||
|
||||
SERENITY_SCREENS="${SERENITY_SCREENS:-1}"
|
||||
if [ "$SERENITY_SPICE" ]; then
|
||||
SERENITY_QEMU_DISPLAY_BACKEND="${SERENITY_QEMU_DISPLAY_BACKEND:-spice-app}"
|
||||
|
@ -146,8 +152,9 @@ $SERENITY_SPICE_SERVER_CHARDEV
|
|||
-device virtconsole,chardev=stdout
|
||||
-device isa-debugcon,chardev=stdout
|
||||
-device virtio-rng-pci
|
||||
-soundhw pcspk
|
||||
-device sb16
|
||||
$SERENITY_AUDIO_BACKEND
|
||||
-machine pcspk-audiodev=snd0
|
||||
-device sb16,audiodev=snd0
|
||||
-device pci-bridge,chassis_nr=1,id=bridge1 -device $SERENITY_ETHERNET_DEVICE_TYPE,bus=bridge1
|
||||
-device i82801b11-bridge,bus=bridge1,id=bridge2 -device sdhci-pci,bus=bridge2
|
||||
-device i82801b11-bridge,id=bridge3 -device sdhci-pci,bus=bridge3
|
||||
|
|
Loading…
Reference in a new issue