VirtualBox

Changeset 61912 in vbox for trunk/src/VBox/Main/xml


Ignore:
Timestamp:
Jun 28, 2016 9:33:40 AM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
108345
Message:

Main/xml/Settings.cpp: Fixes for deprecated SolAudio backend, bit of cleanup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/xml/Settings.cpp

    r61783 r61912  
    36503650        else if ( (strTemp == "DIRECTSOUND") || (strTemp == "DSOUND") )
    36513651            aa.driverType = AudioDriverType_DirectSound;
    3652         else if (strTemp == "SOLAUDIO")
     3652        else if (strTemp == "SOLAUDIO") /* Deprecated -- Solaris will use OSS by default now. */
    36533653            aa.driverType = AudioDriverType_SolAudio;
    36543654        else if (strTemp == "ALSA")
     
    66976697        case AudioDriverType_Null:
    66986698#ifdef RT_OS_WINDOWS
    6699 # ifdef VBOX_WITH_WINMM
    6700         case AudioDriverType_WinMM:
    6701 # endif
    67026699        case AudioDriverType_DirectSound:
    6703 #endif /* RT_OS_WINDOWS */
    6704 #ifdef RT_OS_SOLARIS
    6705         case AudioDriverType_SolAudio:
    67066700#endif
    6707 #ifdef RT_OS_LINUX
    6708 # ifdef VBOX_WITH_ALSA
     6701#ifdef VBOX_WITH_ALSA
    67096702        case AudioDriverType_ALSA:
    6710 # endif
    6711 # ifdef VBOX_WITH_PULSE
     6703#endif
     6704#ifdef VBOX_WITH_PULSE
    67126705        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
    67166708        case AudioDriverType_OSS:
    6717 #endif
    6718 #ifdef RT_OS_FREEBSD
    6719 # ifdef VBOX_WITH_PULSE
    6720         case AudioDriverType_Pulse:
    6721 # endif
    67226709#endif
    67236710#ifdef RT_OS_DARWIN
     
    67376724 * host platform. On Linux, this will check at runtime whether PulseAudio
    67386725 * or ALSA are actually supported on the first call.
    6739  * @return
     6726 *
     6727 * @return Default audio driver type for this host platform.
    67406728 */
    67416729/*static*/
     
    67436731{
    67446732#if defined(RT_OS_WINDOWS)
    6745 # ifdef VBOX_WITH_WINMM
    6746     return AudioDriverType_WinMM;
    6747 # else /* VBOX_WITH_WINMM */
    67486733    return AudioDriverType_DirectSound;
    6749 # endif /* !VBOX_WITH_WINMM */
    67506734#elif defined(RT_OS_SOLARIS)
    6751     return AudioDriverType_SolAudio;
     6735# ifdef VBOX_WITH_OSS
     6736    return AudioDriverType_OSS;
     6737# endif
    67526738#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. */
    67546740    static RTCLockMtx s_mtx;
    67556741    static AudioDriverType_T s_linuxDriver = -1;
     
    67576743    if (s_linuxDriver == (AudioDriverType_T)-1)
    67586744    {
    6759 # if defined(VBOX_WITH_PULSE)
     6745# ifdef VBOX_WITH_PULSE
    67606746        /* Check for the pulse library & that the pulse audio daemon is running. */
    67616747        if (RTProcIsRunningByName("pulseaudio") &&
     
    67646750        else
    67656751# endif /* VBOX_WITH_PULSE */
    6766 # if defined(VBOX_WITH_ALSA)
     6752# ifdef VBOX_WITH_ALSA
    67676753            /* Check if we can load the ALSA library */
    67686754             if (RTLdrIsLoadable("libasound.so.2"))
     
    67736759    }
    67746760    return s_linuxDriver;
    6775 // end elif defined(RT_OS_LINUX)
    67766761#elif defined(RT_OS_DARWIN)
    67776762    return AudioDriverType_CoreAudio;
     
    67796764    return AudioDriverType_MMPM;
    67806765#elif defined(RT_OS_FREEBSD)
     6766# ifdef VBOX_WITH_OSS
    67816767    return AudioDriverType_OSS;
    6782 #else
     6768# endif
     6769#endif
     6770
     6771    /* Return NULL driver as a fallback if nothing of the above is available. */
    67836772    return AudioDriverType_Null;
    6784 #endif
    67856773}
    67866774
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette