#21575 closed enhancement (fixed)
Also use PulseAudio by default when pipewire-pulse is running
回報者: | Aroun | 負責人: | pentagonik |
---|---|---|---|
元件: | audio | 版本: | VirtualBox-7.0.6 |
關鍵字: | audio pulseaudio pipewire | 副本: | |
Guest type: | all | Host type: | Linux |
描述
This patch allows to use PulseAudio by default when pipewire-pulse is running, which is the pipewire in-place replacement for pulseaudio process. Instead of falling-back to ALSA.
diff --git a/src/VBox/Main/xml/Settings.cpp b/src/VBox/Main/xml/Settings.cpp index 046ae0d..0c99559 100644 --- a/src/VBox/Main/xml/Settings.cpp +++ b/src/VBox/Main/xml/Settings.cpp @@ -8933,7 +8933,8 @@ AudioDriverType_T MachineConfigFile::getHostDefaultAudioDriver() { # ifdef VBOX_WITH_AUDIO_PULSE /* Check for the pulse library & that the pulse audio daemon is running. */ - if (RTProcIsRunningByName("pulseaudio") && + if (RTProcIsRunningByName("pulseaudio") || + RTProcIsRunningByName("pipewire-pulse") && RTLdrIsLoadable("libpulse.so.0")) s_enmLinuxDriver = AudioDriverType_Pulse; else
更動歷史 (4)
注意:
瀏覽 TracTickets
來幫助您使用待辦事項功能
Hum, actually, if the left part of the OR is true, then I think the && will not be evaluated, so we should add parenthesis