Changeset 88959 in vbox for trunk/src/VBox/ValidationKit
- Timestamp:
- May 10, 2021 7:19:31 AM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 144295
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/utils/audio/vkat.cpp
r88958 r88959 503 503 pDrvReg = &g_DrvHostOSSAudio; 504 504 #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 507 516 if (pDrvReg == NULL) 508 517 return RTMsgErrorExit(RTEXITCODE_SYNTAX, "Invalid / unsupported backend '%s' specified\n", ValueUnion.psz); … … 585 594 RTTestBanner(g_hTest); 586 595 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. */ 588 597 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 589 605 pDrvReg = &g_DrvHostALSAAudio; 606 #endif 590 607 591 608 PPDMIHOSTAUDIO pDrvAudio;
Note:
See TracChangeset
for help on using the changeset viewer.