VirtualBox

Ignore:
Timestamp:
Oct 20, 2021 9:03:22 AM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
147664
Message:

Devices/Audio: Change audio drivers to access the CFGM API through the driver helper callback table only, bugref:10074

File:
1 edited

Legend:

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

    r91841 r91861  
    14751475    RT_NOREF(fFlags);
    14761476    PDMDRV_CHECK_VERSIONS_RETURN(pDrvIns);
    1477     PDRVHSTAUDALSA pThis = PDMINS_2_DATA(pDrvIns, PDRVHSTAUDALSA);
     1477    PDRVHSTAUDALSA  pThis = PDMINS_2_DATA(pDrvIns, PDRVHSTAUDALSA);
     1478    PCPDMDRVHLPR3   pHlp  = pDrvIns->pHlpR3;
    14781479    LogRel(("Audio: Initializing ALSA driver\n"));
    14791480
     
    15141515    PDMDRV_VALIDATE_CONFIG_RETURN(pDrvIns, "OutputDeviceID|InputDeviceID", "");
    15151516
    1516     rc = CFGMR3QueryStringDef(pCfg, "InputDeviceID", pThis->szInputDev, sizeof(pThis->szInputDev), "default");
     1517    rc = pHlp->pfnCFGMQueryStringDef(pCfg, "InputDeviceID", pThis->szInputDev, sizeof(pThis->szInputDev), "default");
    15171518    AssertRCReturn(rc, rc);
    1518     rc = CFGMR3QueryStringDef(pCfg, "OutputDeviceID", pThis->szOutputDev, sizeof(pThis->szOutputDev), "default");
     1519    rc = pHlp->pfnCFGMQueryStringDef(pCfg, "OutputDeviceID", pThis->szOutputDev, sizeof(pThis->szOutputDev), "default");
    15191520    AssertRCReturn(rc, rc);
    15201521
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