VirtualBox

2 年 前 建立

20 月 前 結束

#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)

comment:1 2 年 前Aroun 編輯

Hum, actually, if the left part of the OR is true, then I think the && will not be evaluated, so we should add parenthesis

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

comment:2 22 月 前pentagonik 編輯

狀態: newassigned
負責人: 指定為 pentagonik

comment:3 22 月 前pentagonik 編輯

Thanks for the patch! This will be available in the next upcoming maintenance version.

comment:4 20 月 前galitsyn 編輯

狀態: assignedclosed
處理結果: fixed

Hello,

We just released VirtualBox 7.0.10. This issue should be fixed in this release. Culd you please give it a try? Packages are available on our downloads page.

注意: 瀏覽 TracTickets 來幫助您使用待辦事項功能

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette