src/VBox/Main/xml/Settings.cpp gets itself very confused 😜with its conditional 
pieces :


--- src/VBox/Main/xml/Settings.cpp.orig 2022-11-17 14:15:45.000000000 -0500
+++ src/VBox/Main/xml/Settings.cpp      2023-01-14 10:11:06.734739372 -0500
@@ -8936,15 +8936,19 @@ AudioDriverType_T MachineConfigFile::get
         if (RTProcIsRunningByName("pulseaudio") &&
             RTLdrIsLoadable("libpulse.so.0"))
             s_enmLinuxDriver = AudioDriverType_Pulse;
+#if defined(VBOX_WITH_AUDIO_ALSA) || defined(VBOX_WITH_AUDIO_OSS)
         else
+#endif
 # endif /* VBOX_WITH_AUDIO_PULSE */
 # ifdef VBOX_WITH_AUDIO_ALSA
             /* Check if we can load the ALSA library */
              if (RTLdrIsLoadable("libasound.so.2"))
                 s_enmLinuxDriver = AudioDriverType_ALSA;
+#if defined(VBOX_WITH_AUDIO_OSS)
+        else
+#endif
 # endif /* VBOX_WITH_AUDIO_ALSA */
 # ifdef VBOX_WITH_AUDIO_OSS
-             else
                 s_enmLinuxDriver = AudioDriverType_OSS;
 # endif /* VBOX_WITH_AUDIO_OSS */
     }


_______________________________________________
vbox-dev mailing list
vbox-dev@virtualbox.org
https://www.virtualbox.org/mailman/listinfo/vbox-dev

Reply via email to