Changeset 88959 in vbox
- Timestamp:
- May 10, 2021 7:19:31 AM (4 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DrvHostAudioCoreAudio.cpp
r88887 r88959 25 25 #include <VBox/vmm/pdmaudiohostenuminline.h> 26 26 27 #include "VBoxDD.h" 27 #ifdef VBOX_AUDIO_VKAT 28 # include "VBoxDDVKAT.h" 29 #else 30 # include "VBoxDD.h" 31 #endif 28 32 29 33 #include <iprt/asm.h> -
trunk/src/VBox/Devices/Audio/DrvHostAudioDSound.cpp
r88887 r88959 36 36 #include <VBox/vmm/pdmaudiohostenuminline.h> 37 37 38 #include "VBoxDD.h" 38 #ifdef VBOX_AUDIO_VKAT 39 # include "VBoxDDVKAT.h" 40 #else 41 # include "VBoxDD.h" 42 #endif 43 39 44 #ifdef VBOX_WITH_AUDIO_MMNOTIFICATION_CLIENT 40 45 # include <new> /* For bad_alloc. */ -
trunk/src/VBox/Devices/Audio/DrvHostAudioWasApi.cpp
r88887 r88959 45 45 #include <new> /* std::bad_alloc */ 46 46 47 #include "VBoxDD.h" 47 #ifdef VBOX_AUDIO_VKAT 48 # include "VBoxDDVKAT.h" 49 #else 50 # include "VBoxDD.h" 51 #endif 48 52 49 53 -
trunk/src/VBox/Devices/Audio/VBoxDDVKAT.h
r88958 r88959 150 150 extern const PDMDRVREG g_DrvHostOSSAudio; 151 151 #endif 152 #if defined(RT_OS_WINDOWS) 153 extern const PDMDRVREG g_DrvHostAudioWas; 154 extern const PDMDRVREG g_DrvHostDSound; 155 #endif 156 #if defined(RT_OS_DARWIN) 157 extern const PDMDRVREG g_DrvHostCoreAudio; 158 #endif 152 159 153 160 #endif /* !VBOX_INCLUDED_SRC_Audio_VBoxDDVKAT_h */ -
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.