- Timestamp:
- Jul 6, 2016 2:24:20 PM (9 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Config.kmk
r62006 r62056 434 434 # Enable new PS/2 mouse emulation. 435 435 VBOX_WITH_NEW_PS2M = 1 436 # Enable OSS audio support. 437 VBOX_WITH_OSS = 1 438 # Enable ALSA audio support. 439 VBOX_WITH_ALSA = 1 440 # Enable PulseAudio audio support. 441 VBOX_WITH_PULSE = 1 436 ifn1of ($(KBUILD_TARGET), win darwin) 437 # Enable OSS audio support. 438 VBOX_WITH_OSS = 1 439 endif 440 if1of ($(KBUILD_TARGET), linux) 441 # Enable ALSA audio support. 442 VBOX_WITH_ALSA = 1 443 endif 444 if1of ($(KBUILD_TARGET), linux) 445 # Enable PulseAudio audio support. 446 VBOX_WITH_PULSE = 1 447 endif 442 448 # Enable PCI passthrough support. 443 449 VBOX_WITH_PCI_PASSTHROUGH = 1 -
trunk/src/VBox/Devices/build/VBoxDD.h
r61339 r62056 5 5 6 6 /* 7 * Copyright (C) 2006-201 5Oracle Corporation7 * Copyright (C) 2006-2016 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 122 122 extern const PDMDRVREG g_DrvHostDSound; 123 123 #endif 124 #if defined(RT_OS_LINUX) 124 #ifdef VBOX_WITH_OSS 125 extern const PDMDRVREG g_DrvHostOSSAudio; 126 #endif 127 #ifdef VBOX_WITH_ALSA 128 extern const PDMDRVREG g_DrvHostALSAAudio; 129 #endif 130 #ifdef VBOX_WITH_PULSE 125 131 extern const PDMDRVREG g_DrvHostPulseAudio; 126 extern const PDMDRVREG g_DrvHostALSAAudio;127 extern const PDMDRVREG g_DrvHostOSSAudio;128 132 #endif 129 133 #if defined(RT_OS_DARWIN) 130 134 extern const PDMDRVREG g_DrvHostCoreAudio; 131 #endif132 #if defined(RT_OS_SOLARIS)133 extern const PDMDRVREG g_DrvHostOSSAudio;134 extern const PDMDRVREG g_DrvHostSolAudio;135 #endif136 #if defined(RT_OS_FREEBSD)137 extern const PDMDRVREG g_DrvHostOSSAudio;138 135 #endif 139 136 extern const PDMDRVREG g_DrvACPI; -
trunk/src/VBox/Frontends/VBoxManage/Makefile.kmk
r56465 r62056 5 5 6 6 # 7 # Copyright (C) 2006-201 5Oracle Corporation7 # Copyright (C) 2006-2016 Oracle Corporation 8 8 # 9 9 # This file is part of VirtualBox Open Source Edition (OSE), as … … 21 21 VBOX_COMMON_VBOXMANAGE_DEFS = \ 22 22 $(if $(VBOX_WITH_AHCI), VBOX_WITH_AHCI) \ 23 $(if $(VBOX_WITH_ALSA), VBOX_WITH_ALSA) \24 23 $(if $(VBOX_WITH_COPYTOGUEST),VBOX_WITH_COPYTOGUEST) \ 25 24 $(if $(VBOX_WITH_E1000),VBOX_WITH_E1000) \ … … 30 29 $(if $(VBOX_WITH_HOSTNETIF_API), VBOX_WITH_HOSTNETIF_API) \ 31 30 $(if $(VBOX_WITH_NETFLT), VBOX_WITH_NETFLT) \ 31 $(if $(VBOX_WITH_OSS), VBOX_WITH_OSS) \ 32 $(if $(VBOX_WITH_ALSA), VBOX_WITH_ALSA) \ 32 33 $(if $(VBOX_WITH_PULSE),VBOX_WITH_PULSE) \ 33 34 $(if $(VBOX_WITH_SCSI), VBOX_WITH_SCSI) \ 34 $(if $(VBOX_WITH_SOLARIS_OSS), VBOX_WITH_SOLARIS_OSS) \35 35 $(if $(VBOX_WITH_VBOXSDL), VBOX_WITH_VBOXSDL) \ 36 36 $(if $(VBOX_WITH_VIDEOHWACCEL), VBOX_WITH_VIDEOHWACCEL) \ -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp
r61937 r62056 797 797 #else 798 798 RTStrmPrintf(pStrm, "|dsound"); 799 #endif800 799 } 801 if (f Solaris)800 if (fLinux || fSolaris) 802 801 { 803 RTStrmPrintf(pStrm, "|solaudio" 804 #ifdef VBOX_WITH_SOLARIS_OSS 805 "|oss" 806 #endif 807 ); 808 } 809 if (fLinux) 810 { 802 #ifdef VBOX_WITH_OSS 811 803 RTStrmPrintf(pStrm, "|oss" 804 #endif 812 805 #ifdef VBOX_WITH_ALSA 813 806 "|alsa" 814 807 #endif 815 808 #ifdef VBOX_WITH_PULSE 816 809 "|pulse" 817 810 #endif 818 811 ); … … 820 813 if (fFreeBSD) 821 814 { 815 #ifdef VBOX_WITH_OSS 822 816 /* Get the line break sorted when dumping all option variants. */ 823 817 if (fDumpOpts) … … 828 822 else 829 823 RTStrmPrintf(pStrm, "|oss"); 824 #endif 830 825 #ifdef VBOX_WITH_PULSE 831 826 RTStrmPrintf(pStrm, "|pulse"); -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp
r61042 r62056 2286 2286 } 2287 2287 #endif /* RT_OS_WINDOWS */ 2288 #ifdef RT_OS_LINUX 2289 # ifdef VBOX_WITH_ALSA 2288 #ifdef VBOX_WITH_OSS 2289 else if (!RTStrICmp(ValueUnion.psz, "oss")) 2290 { 2291 CHECK_ERROR(audioAdapter, COMSETTER(AudioDriver)(AudioDriverType_OSS)); 2292 CHECK_ERROR(audioAdapter, COMSETTER(Enabled)(true)); 2293 } 2294 #endif 2295 #ifdef VBOX_WITH_ALSA 2290 2296 else if (!RTStrICmp(ValueUnion.psz, "alsa")) 2291 2297 { … … 2293 2299 CHECK_ERROR(audioAdapter, COMSETTER(Enabled)(true)); 2294 2300 } 2295 # 2296 # 2301 #endif 2302 #ifdef VBOX_WITH_PULSE 2297 2303 else if (!RTStrICmp(ValueUnion.psz, "pulse")) 2298 2304 { … … 2300 2306 CHECK_ERROR(audioAdapter, COMSETTER(Enabled)(true)); 2301 2307 } 2302 # endif 2303 #endif /* !RT_OS_LINUX */ 2304 #ifdef RT_OS_SOLARIS 2305 else if (!RTStrICmp(ValueUnion.psz, "solaudio")) 2306 { 2307 CHECK_ERROR(audioAdapter, COMSETTER(AudioDriver)(AudioDriverType_SolAudio)); 2308 CHECK_ERROR(audioAdapter, COMSETTER(Enabled)(true)); 2309 } 2310 #endif /* !RT_OS_SOLARIS */ 2311 #ifdef RT_OS_FREEBSD 2312 else if (!RTStrICmp(ValueUnion.psz, "oss")) 2313 { 2314 CHECK_ERROR(audioAdapter, COMSETTER(AudioDriver)(AudioDriverType_OSS)); 2315 CHECK_ERROR(audioAdapter, COMSETTER(Enabled)(true)); 2316 } 2317 # ifdef VBOX_WITH_PULSE 2318 else if (!RTStrICmp(ValueUnion.psz, "pulse")) 2319 { 2320 CHECK_ERROR(audioAdapter, COMSETTER(AudioDriver)(AudioDriverType_Pulse)); 2321 CHECK_ERROR(audioAdapter, COMSETTER(Enabled)(true)); 2322 } 2323 # endif 2324 #endif /* !RT_OS_FREEBSD */ 2308 #endif 2325 2309 #ifdef RT_OS_DARWIN 2326 2310 else if (!RTStrICmp(ValueUnion.psz, "coreaudio")) … … 2329 2313 CHECK_ERROR(audioAdapter, COMSETTER(Enabled)(true)); 2330 2314 } 2331 2332 2315 #endif /* !RT_OS_DARWIN */ 2333 # if defined(RT_OS_FREEBSD) || defined(RT_OS_LINUX) || defined(VBOX_WITH_SOLARIS_OSS)2334 else if (!RTStrICmp(ValueUnion.psz, "oss"))2335 {2336 CHECK_ERROR(audioAdapter, COMSETTER(AudioDriver)(AudioDriverType_OSS));2337 CHECK_ERROR(audioAdapter, COMSETTER(Enabled)(true));2338 }2339 # endif2340 2316 else 2341 2317 { -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsAudio.cpp
r52730 r62056 5 5 6 6 /* 7 * Copyright (C) 2006-201 3Oracle Corporation7 * Copyright (C) 2006-2016 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 153 153 #endif /* Q_OS_WIN */ 154 154 155 #ifdef Q_OS_SOLARIS 156 m_pComboAudioDriver->setItemText(++iIndex, gpConverter->toString(KAudioDriverType_SolAudio)); 157 # ifdef VBOX_WITH_SOLARIS_OSS 155 #ifdef VBOX_WITH_OSS 158 156 m_pComboAudioDriver->setItemText(++iIndex, gpConverter->toString(KAudioDriverType_OSS)); 159 # endif /* VBOX_WITH_SOLARIS_OSS */ 160 #endif /* Q_OS_SOLARIS */ 161 162 #if defined Q_OS_LINUX || defined Q_OS_FREEBSD 163 m_pComboAudioDriver->setItemText(++iIndex, gpConverter->toString(KAudioDriverType_OSS)); 164 # ifdef VBOX_WITH_PULSE 157 #endif 158 159 #ifdef VBOX_WITH_ALSA 160 m_pComboAudioDriver->setItemText(++iIndex, gpConverter->toString(KAudioDriverType_ALSA)); 161 #endif 162 163 #ifdef VBOX_WITH_PULSE 165 164 m_pComboAudioDriver->setItemText(++iIndex, gpConverter->toString(KAudioDriverType_Pulse)); 166 # endif /* VBOX_WITH_PULSE */ 167 #endif /* Q_OS_LINUX | Q_OS_FREEBSD */ 168 169 #ifdef Q_OS_LINUX 170 # ifdef VBOX_WITH_ALSA 171 m_pComboAudioDriver->setItemText(++iIndex, gpConverter->toString(KAudioDriverType_ALSA)); 172 # endif /* VBOX_WITH_ALSA */ 173 #endif /* Q_OS_LINUX */ 165 #endif 174 166 175 167 #ifdef Q_OS_MACX … … 220 212 # endif /* VBOX_WITH_WINMM */ 221 213 #endif /* Q_OS_WIN */ 222 223 #ifdef Q_OS_SOLARIS 224 m_pComboAudioDriver->insertItem(++iIndex, "", KAudioDriverType_SolAudio); 225 # ifdef VBOX_WITH_SOLARIS_OSS 214 #ifdef VBOX_WITH_OSS 226 215 m_pComboAudioDriver->insertItem(++iIndex, "", KAudioDriverType_OSS); 227 # endif /* VBOX_WITH_SOLARIS_OSS */ 228 #endif /* Q_OS_SOLARIS */ 229 230 #if defined Q_OS_LINUX || defined Q_OS_FREEBSD 231 m_pComboAudioDriver->insertItem(++iIndex, "", KAudioDriverType_OSS); 232 # ifdef VBOX_WITH_PULSE 216 #endif 217 #ifdef VBOX_WITH_ALSA 218 m_pComboAudioDriver->insertItem(++iIndex, "", KAudioDriverType_ALSA); 219 #endif /* VBOX_WITH_ALSA */ 220 #ifdef VBOX_WITH_PULSE 233 221 m_pComboAudioDriver->insertItem(++iIndex, "", KAudioDriverType_Pulse); 234 # endif /* VBOX_WITH_PULSE */ 235 #endif /* Q_OS_LINUX | Q_OS_FREEBSD */ 236 237 #ifdef Q_OS_LINUX 238 # ifdef VBOX_WITH_ALSA 239 m_pComboAudioDriver->insertItem(++iIndex, "", KAudioDriverType_ALSA); 240 # endif /* VBOX_WITH_ALSA */ 241 #endif /* Q_OS_LINUX */ 242 222 #endif /* VBOX_WITH_PULSE */ 243 223 #ifdef Q_OS_MACX 244 224 m_pComboAudioDriver->insertItem(++iIndex, "", KAudioDriverType_CoreAudio); 245 225 #endif /* Q_OS_MACX */ 246 226 247 248 227 /* Prepare audio-controller combo. 249 228 * Make sure this order corresponds the same in retranslateUi(): */ -
trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp
r61930 r62056 2879 2879 } 2880 2880 #endif 2881 #ifdef VBOX_WITH_OSS 2882 case AudioDriverType_OSS: 2883 { 2884 InsertConfigString(pLunL1, "Driver", "OSSAudio"); 2885 break; 2886 } 2887 #endif 2881 2888 #ifdef VBOX_WITH_ALSA 2882 2889 case AudioDriverType_ALSA: … … 2890 2897 { 2891 2898 InsertConfigString(pLunL1, "Driver", "PulseAudio"); 2892 break;2893 }2894 #endif2895 #ifdef VBOX_WITH_OSS2896 case AudioDriverType_OSS:2897 {2898 InsertConfigString(pLunL1, "Driver", "OSSAudio");2899 2899 break; 2900 2900 } -
trunk/src/VBox/Main/xml/Settings.cpp
r61912 r62056 6699 6699 case AudioDriverType_DirectSound: 6700 6700 #endif 6701 #ifdef VBOX_WITH_OSS 6702 case AudioDriverType_OSS: 6703 #endif 6701 6704 #ifdef VBOX_WITH_ALSA 6702 6705 case AudioDriverType_ALSA: … … 6704 6707 #ifdef VBOX_WITH_PULSE 6705 6708 case AudioDriverType_Pulse: 6706 #endif6707 #ifdef VBOX_WITH_OSS6708 case AudioDriverType_OSS:6709 6709 #endif 6710 6710 #ifdef RT_OS_DARWIN … … 6732 6732 #if defined(RT_OS_WINDOWS) 6733 6733 return AudioDriverType_DirectSound; 6734 #elif defined(RT_OS_SOLARIS)6735 # ifdef VBOX_WITH_OSS6736 return AudioDriverType_OSS;6737 # endif6738 6734 #elif defined(RT_OS_LINUX) 6739 6735 /* On Linux, we need to check at runtime what's actually supported. */ … … 6763 6759 #elif defined(RT_OS_OS2) 6764 6760 return AudioDriverType_MMPM; 6765 #el if defined(RT_OS_FREEBSD)6761 #else /* All other platforms. */ 6766 6762 # ifdef VBOX_WITH_OSS 6767 6763 return AudioDriverType_OSS;
Note:
See TracChangeset
for help on using the changeset viewer.