VirtualBox

Changeset 88959 in vbox for trunk/src/VBox/ValidationKit


Ignore:
Timestamp:
May 10, 2021 7:19:31 AM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
144295
Message:

Audio/VaKit: Added driver backends for MacOS and Windows. bugref:10008

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/utils/audio/vkat.cpp

    r88958 r88959  
    503503                    pDrvReg = &g_DrvHostOSSAudio;
    504504#endif
    505                 /** @todo Add more backends here. */
    506 
     505#if defined(RT_OS_DARWIN)
     506                if (   !RTStrICmp(ValueUnion.psz, "coreaudio"))
     507                    pDrvReg = &g_DrvHostCoreAudio;
     508#endif
     509#if defined(RT_OS_WINDOWS)
     510                if (        !RTStrICmp(ValueUnion.psz, "wasapi"))
     511                    pDrvReg = &g_DrvHostAudioWas;
     512                else if (   !RTStrICmp(ValueUnion.psz, "directsound")
     513                         || !RTStrICmp(ValueUnion.psz, "dsound")
     514                    pDrvReg = &g_DrvHostDSound;
     515#endif
    507516                if (pDrvReg == NULL)
    508517                    return RTMsgErrorExit(RTEXITCODE_SYNTAX, "Invalid / unsupported backend '%s' specified\n", ValueUnion.psz);
     
    585594    RTTestBanner(g_hTest);
    586595
    587     /* If no backend is specified, go with the ALSA one by default. */
     596    /* If no backend is specified, go with the default backend for that OS. */
    588597    if (pDrvReg == NULL)
     598#if defined(RT_OS_WINDOWS)
     599        pDrvReg = &g_DrvHostAudioWas;
     600#elif defined(RT_OS_DARWIN)
     601        pDrvReg = &g_DrvHostCoreAudio;
     602#elif defined(RT_OS_SOLARIS)
     603        pDrvReg = &g_DrvHostOSSAudio;
     604#else
    589605        pDrvReg = &g_DrvHostALSAAudio;
     606#endif
    590607
    591608    PPDMIHOSTAUDIO pDrvAudio;
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