fix: Check for PipeWire as well as PulseAudio before falling back to ALSA (#1565)
* fix: Check for PipeWire as well as PulseAudio before falling back to ALSA * fix: Use PipeWire backend if available, and where QEMU version is >8.1 Co-authored-by: Liam <33645555+lj3954@users.noreply.github.com> --------- Co-authored-by: Liam <33645555+lj3954@users.noreply.github.com>
This commit is contained in:
parent
20b17cb129
commit
0c772d5619
7
quickemu
7
quickemu
|
@ -882,7 +882,12 @@ function configure_storage() {
|
|||
function configure_display() {
|
||||
# Determine which audio driver use between Pulseaudio or ALSA
|
||||
local AUDIO_DRIVER="pa"
|
||||
if ! command -v pacmd >/dev/null 2>&1 ; then
|
||||
if pidof pipewire >/dev/null 2>&1; then
|
||||
# QEMU's pipewire audio backend was added in version 8.1
|
||||
if [ "${QEMU_VER_SHORT}" -ge 81 ]; then
|
||||
AUDIO_DRIVER="pipewire"
|
||||
fi
|
||||
elif ! pidof pulseaudio >/dev/null 2>&1; then
|
||||
AUDIO_DRIVER="alsa"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue