VirtualBox

Changeset 91884 in vbox for trunk


Ignore:
Timestamp:
Oct 20, 2021 11:52:45 AM (3 years ago)
Author:
vboxsync
Message:

Devices/Audio: Change audio drivers to access the CFGM API through the driver helper callback table only, bugref:10074 [some missing access to CFGMR3*]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/DrvHostAudioDSound.cpp

    r91425 r91884  
    26652665
    26662666
    2667 static LPCGUID dsoundConfigQueryGUID(PCFGMNODE pCfg, const char *pszName, RTUUID *pUuid)
    2668 {
     2667static LPCGUID dsoundConfigQueryGUID(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, const char *pszName, RTUUID *pUuid)
     2668{
     2669    PCPDMDRVHLPR3 pHlp = pDrvIns->pHlpR3;
    26692670    LPCGUID pGuid = NULL;
    26702671
    26712672    char *pszGuid = NULL;
    2672     int rc = CFGMR3QueryStringAlloc(pCfg, pszName, &pszGuid);
     2673    int rc = pHlp->pfnCFGMQueryStringAlloc(pCfg, pszName, &pszGuid);
    26732674    if (RT_SUCCESS(rc))
    26742675    {
     
    26882689static void dsoundConfigInit(PDRVHOSTDSOUND pThis, PCFGMNODE pCfg)
    26892690{
    2690     pThis->Cfg.pGuidPlay    = dsoundConfigQueryGUID(pCfg, "DeviceGuidOut", &pThis->Cfg.uuidPlay);
    2691     pThis->Cfg.pGuidCapture = dsoundConfigQueryGUID(pCfg, "DeviceGuidIn",  &pThis->Cfg.uuidCapture);
     2691    pThis->Cfg.pGuidPlay    = dsoundConfigQueryGUID(pThis->pDrvIns, pCfg, "DeviceGuidOut", &pThis->Cfg.uuidPlay);
     2692    pThis->Cfg.pGuidCapture = dsoundConfigQueryGUID(pThis->pDrvIns, pCfg, "DeviceGuidIn",  &pThis->Cfg.uuidCapture);
    26922693
    26932694    DSLOG(("DSound: Configuration: DeviceGuidOut {%RTuuid}, DeviceGuidIn {%RTuuid}\n",
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