VirtualBox

Changeset 89081 in vbox


Ignore:
Timestamp:
May 17, 2021 9:15:52 AM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
144421
Message:

Audio/ValKit: Implemented and enabled Windows build (DSound + Wasapi backends). ​bugref:10008

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r89021 r89081  
    794794ifdef VBOX_WITH_VALIDATIONKIT
    795795 # Enable more platforms later.
    796  if1of ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH), linux.amd64)
     796 if1of ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH), win.x86 win.amd64 linux.amd64)
    797797  VBOX_WITH_AUDIO_VALIDATIONKIT = 1
    798798 endif
  • trunk/src/VBox/Devices/Audio/DrvHostAudioWasApi.cpp

    r88991 r89081  
    4545#include <new> /* std::bad_alloc */
    4646
    47 #ifdef VBOX_AUDIO_VKAT
    48 # include "VBoxDDVKAT.h"
    49 #else
    50 # include "VBoxDD.h"
    51 #endif
     47#include "VBoxDD.h"
    5248
    5349
  • trunk/src/VBox/ValidationKit/utils/audio/Makefile.kmk

    r89061 r89081  
    7878endif
    7979
     80ifeq ($(KBUILD_TARGET),win)
     81  AudioTest_SOURCES += \
     82        $(VKAT_PATH_AUDIO)/DrvHostAudioDSound.cpp \
     83        $(VKAT_PATH_AUDIO)/DrvHostAudioWasApi.cpp
     84 ifdef VBOX_WITH_AUDIO_MMNOTIFICATION_CLIENT
     85   AudioTest_DEFS    += VBOX_WITH_AUDIO_MMNOTIFICATION_CLIENT
     86   AudioTest_SOURCES += \
     87        $(VKAT_PATH_AUDIO)/DrvHostAudioDSoundMMNotifClient.cpp
     88 endif
     89endif
     90
    8091AudioTest_SOURCES.darwin = \
    8192        $(VKAT_PATH_AUDIO)/DrvHostAudioCoreAudio.cpp \
     
    89100
    90101include $(FILE_KBUILD_SUB_FOOTER)
    91 
  • trunk/src/VBox/ValidationKit/utils/audio/vkat.cpp

    r89077 r89081  
    297297    {   &g_DrvHostDSound,       "directsound" },
    298298    {   &g_DrvHostDSound,       "dsound" },
    299     {   &g_DrvHostDSound,       "ds" },
     299    {   &g_DrvHostDSound,       "ds" }
    300300#endif
    301301};
     
    347347
    348348    return VERR_CFGM_VALUE_NOT_FOUND;
     349}
     350
     351VMMR3DECL(int) CFGMR3QueryStringAlloc(PCFGMNODE pNode, const char *pszName, char **ppszString)
     352{
     353    char szStr[128];
     354    int rc = CFGMR3QueryString(pNode, pszName, szStr, sizeof(szStr));
     355    if (RT_SUCCESS(rc))
     356        *ppszString = RTStrDup(szStr);
     357
     358    return rc;
    349359}
    350360
Note: See TracChangeset for help on using the changeset viewer.

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