Changeset 61912 in vbox for trunk/src/VBox/Main/xml
- Timestamp:
- Jun 28, 2016 9:33:40 AM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 108345
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/xml/Settings.cpp
r61783 r61912 3650 3650 else if ( (strTemp == "DIRECTSOUND") || (strTemp == "DSOUND") ) 3651 3651 aa.driverType = AudioDriverType_DirectSound; 3652 else if (strTemp == "SOLAUDIO") 3652 else if (strTemp == "SOLAUDIO") /* Deprecated -- Solaris will use OSS by default now. */ 3653 3653 aa.driverType = AudioDriverType_SolAudio; 3654 3654 else if (strTemp == "ALSA") … … 6697 6697 case AudioDriverType_Null: 6698 6698 #ifdef RT_OS_WINDOWS 6699 # ifdef VBOX_WITH_WINMM6700 case AudioDriverType_WinMM:6701 # endif6702 6699 case AudioDriverType_DirectSound: 6703 #endif /* RT_OS_WINDOWS */6704 #ifdef RT_OS_SOLARIS6705 case AudioDriverType_SolAudio:6706 6700 #endif 6707 #ifdef RT_OS_LINUX 6708 # ifdef VBOX_WITH_ALSA 6701 #ifdef VBOX_WITH_ALSA 6709 6702 case AudioDriverType_ALSA: 6710 # 6711 # 6703 #endif 6704 #ifdef VBOX_WITH_PULSE 6712 6705 case AudioDriverType_Pulse: 6713 # endif 6714 #endif /* RT_OS_LINUX */ 6715 #if defined (RT_OS_LINUX) || defined (RT_OS_FREEBSD) || defined(VBOX_WITH_SOLARIS_OSS) 6706 #endif 6707 #ifdef VBOX_WITH_OSS 6716 6708 case AudioDriverType_OSS: 6717 #endif6718 #ifdef RT_OS_FREEBSD6719 # ifdef VBOX_WITH_PULSE6720 case AudioDriverType_Pulse:6721 # endif6722 6709 #endif 6723 6710 #ifdef RT_OS_DARWIN … … 6737 6724 * host platform. On Linux, this will check at runtime whether PulseAudio 6738 6725 * or ALSA are actually supported on the first call. 6739 * @return 6726 * 6727 * @return Default audio driver type for this host platform. 6740 6728 */ 6741 6729 /*static*/ … … 6743 6731 { 6744 6732 #if defined(RT_OS_WINDOWS) 6745 # ifdef VBOX_WITH_WINMM6746 return AudioDriverType_WinMM;6747 # else /* VBOX_WITH_WINMM */6748 6733 return AudioDriverType_DirectSound; 6749 # endif /* !VBOX_WITH_WINMM */6750 6734 #elif defined(RT_OS_SOLARIS) 6751 return AudioDriverType_SolAudio; 6735 # ifdef VBOX_WITH_OSS 6736 return AudioDriverType_OSS; 6737 # endif 6752 6738 #elif defined(RT_OS_LINUX) 6753 / / on Linux, we need to check at runtime what's actually supported...6739 /* On Linux, we need to check at runtime what's actually supported. */ 6754 6740 static RTCLockMtx s_mtx; 6755 6741 static AudioDriverType_T s_linuxDriver = -1; … … 6757 6743 if (s_linuxDriver == (AudioDriverType_T)-1) 6758 6744 { 6759 # if defined(VBOX_WITH_PULSE)6745 # ifdef VBOX_WITH_PULSE 6760 6746 /* Check for the pulse library & that the pulse audio daemon is running. */ 6761 6747 if (RTProcIsRunningByName("pulseaudio") && … … 6764 6750 else 6765 6751 # endif /* VBOX_WITH_PULSE */ 6766 # if defined(VBOX_WITH_ALSA)6752 # ifdef VBOX_WITH_ALSA 6767 6753 /* Check if we can load the ALSA library */ 6768 6754 if (RTLdrIsLoadable("libasound.so.2")) … … 6773 6759 } 6774 6760 return s_linuxDriver; 6775 // end elif defined(RT_OS_LINUX)6776 6761 #elif defined(RT_OS_DARWIN) 6777 6762 return AudioDriverType_CoreAudio; … … 6779 6764 return AudioDriverType_MMPM; 6780 6765 #elif defined(RT_OS_FREEBSD) 6766 # ifdef VBOX_WITH_OSS 6781 6767 return AudioDriverType_OSS; 6782 #else 6768 # endif 6769 #endif 6770 6771 /* Return NULL driver as a fallback if nothing of the above is available. */ 6783 6772 return AudioDriverType_Null; 6784 #endif6785 6773 } 6786 6774
Note:
See TracChangeset
for help on using the changeset viewer.