Changeset 98089 in vbox
- Timestamp:
- Jan 16, 2023 9:32:37 AM (23 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/xml/Settings.cpp
r96888 r98089 8926 8926 8927 8927 #elif defined(RT_OS_LINUX) 8928 /* On Linux, we need to check at runtime what's actually supported. */ 8928 /* On Linux, we need to check at runtime what's actually supported. 8929 * Descending precedence. */ 8929 8930 static RTCLockMtx s_mtx; 8930 8931 static AudioDriverType_T s_enmLinuxDriver = AudioDriverType_Null; 8931 8932 RTCLock lock(s_mtx); 8932 if (s_enmLinuxDriver == AudioDriverType_Null) 8933 if (s_enmLinuxDriver == AudioDriverType_Null) /* Already determined from a former run? */ 8933 8934 { 8934 8935 # ifdef VBOX_WITH_AUDIO_PULSE 8935 8936 /* Check for the pulse library & that the pulse audio daemon is running. */ 8936 if (RTProcIsRunningByName("pulseaudio") && 8937 RTLdrIsLoadable("libpulse.so.0")) 8937 if ( RTProcIsRunningByName("pulseaudio") 8938 && RTLdrIsLoadable("libpulse.so.0")) 8939 { 8938 8940 s_enmLinuxDriver = AudioDriverType_Pulse; 8939 else 8940 # endif /* VBOX_WITH_AUDIO_PULSE */ 8941 } 8942 #endif /* VBOX_WITH_AUDIO_PULSE */ 8943 8941 8944 # ifdef VBOX_WITH_AUDIO_ALSA 8945 if (s_enmLinuxDriver == AudioDriverType_Null) 8946 { 8942 8947 /* Check if we can load the ALSA library */ 8943 8948 if (RTLdrIsLoadable("libasound.so.2")) 8944 8949 s_enmLinuxDriver = AudioDriverType_ALSA; 8950 } 8945 8951 # endif /* VBOX_WITH_AUDIO_ALSA */ 8952 8946 8953 # ifdef VBOX_WITH_AUDIO_OSS 8947 else8948 8954 if (s_enmLinuxDriver == AudioDriverType_Null) 8955 s_enmLinuxDriver = AudioDriverType_OSS; 8949 8956 # endif /* VBOX_WITH_AUDIO_OSS */ 8950 8957 }
Note:
See TracChangeset
for help on using the changeset viewer.