Changeset 30934 in vbox for trunk/src/VBox/Main/SystemPropertiesImpl.cpp
- Timestamp:
- Jul 20, 2010 4:53:40 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/SystemPropertiesImpl.cpp
r30842 r30934 29 29 #include <iprt/path.h> 30 30 #include <iprt/dir.h> 31 #include <iprt/process.h>32 #include <iprt/ldr.h>33 31 #include <iprt/cpp/utils.h> 34 32 … … 117 115 } 118 116 } 119 120 /* Driver defaults which are OS specific */121 #if defined(RT_OS_WINDOWS)122 # ifdef VBOX_WITH_WINMM123 mDefaultAudioDriver = AudioDriverType_WinMM;124 # else /* VBOX_WITH_WINMM */125 mDefaultAudioDriver = AudioDriverType_DirectSound;126 # endif /* !VBOX_WITH_WINMM */127 #elif defined(RT_OS_SOLARIS)128 mDefaultAudioDriver = AudioDriverType_SolAudio;129 #elif defined(RT_OS_LINUX)130 # if defined(VBOX_WITH_PULSE)131 /* Check for the pulse library & that the pulse audio daemon is running. */132 if (RTProcIsRunningByName("pulseaudio") &&133 RTLdrIsLoadable("libpulse.so.0"))134 mDefaultAudioDriver = AudioDriverType_Pulse;135 else136 # endif /* VBOX_WITH_PULSE */137 # if defined(VBOX_WITH_ALSA)138 /* Check if we can load the ALSA library */139 if (RTLdrIsLoadable("libasound.so.2"))140 mDefaultAudioDriver = AudioDriverType_ALSA;141 else142 # endif /* VBOX_WITH_ALSA */143 mDefaultAudioDriver = AudioDriverType_OSS;144 #elif defined(RT_OS_DARWIN)145 mDefaultAudioDriver = AudioDriverType_CoreAudio;146 #elif defined(RT_OS_OS2)147 mDefaultAudioDriver = AudioDriverType_MMP;148 #elif defined(RT_OS_FREEBSD)149 mDefaultAudioDriver = AudioDriverType_OSS;150 #else151 mDefaultAudioDriver = AudioDriverType_Null;152 #endif153 117 154 118 /* Confirm a successful initialization */ … … 805 769 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 806 770 807 *aAudioDriver = mDefaultAudioDriver;771 *aAudioDriver = settings::MachineConfigFile::getHostDefaultAudioDriver(); 808 772 809 773 return S_OK;
Note:
See TracChangeset
for help on using the changeset viewer.