VirtualBox

Ignore:
Timestamp:
Nov 27, 2019 11:20:26 PM (5 years ago)
Author:
vboxsync
Message:

vmm/pdmaudioifs.h: More of the same. bugref:9218

File:
1 edited

Legend:

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

    r82254 r82255  
    585585 * @interface_method_impl{PDMIHOSTAUDIO,pfnInit}
    586586 */
    587 static DECLCALLBACK(int) drvHostALSAAudioInit(PPDMIHOSTAUDIO pInterface)
     587static DECLCALLBACK(int) drvHostAlsaAudioHA_Init(PPDMIHOSTAUDIO pInterface)
    588588{
    589589    RT_NOREF(pInterface);
     
    608608 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamCapture}
    609609 */
    610 static DECLCALLBACK(int) drvHostALSAAudioStreamCapture(PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream,
    611                                                        void *pvBuf, uint32_t uBufSize, uint32_t *puRead)
     610static DECLCALLBACK(int) drvHostAlsaAudioHA_StreamCapture(PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream,
     611                                                          void *pvBuf, uint32_t uBufSize, uint32_t *puRead)
    612612{
    613613    AssertPtrReturn(pInterface, VERR_INVALID_POINTER);
     
    751751 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamPlay}
    752752 */
    753 static DECLCALLBACK(int) drvHostALSAAudioStreamPlay(PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream,
    754                                                     const void *pvBuf, uint32_t uBufSize, uint32_t *puWritten)
     753static DECLCALLBACK(int) drvHostAlsaAudioHA_StreamPlay(PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream,
     754                                                       const void *pvBuf, uint32_t uBufSize, uint32_t *puWritten)
    755755{
    756756    AssertPtrReturn(pInterface, VERR_INVALID_POINTER);
     
    11591159 * @interface_method_impl{PDMIHOSTAUDIO,pfnGetConfig}
    11601160 */
    1161 static DECLCALLBACK(int) drvHostALSAAudioGetConfig(PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDCFG pBackendCfg)
     1161static DECLCALLBACK(int) drvHostAlsaAudioHA_GetConfig(PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDCFG pBackendCfg)
    11621162{
    11631163    RT_NOREF(pInterface);
     
    12341234 * @interface_method_impl{PDMIHOSTAUDIO,pfnShutdown}
    12351235 */
    1236 static DECLCALLBACK(void) drvHostALSAAudioShutdown(PPDMIHOSTAUDIO pInterface)
     1236static DECLCALLBACK(void) drvHostAlsaAudioHA_Shutdown(PPDMIHOSTAUDIO pInterface)
    12371237{
    12381238    RT_NOREF(pInterface);
     
    12431243 * @interface_method_impl{PDMIHOSTAUDIO,pfnGetStatus}
    12441244 */
    1245 static DECLCALLBACK(PDMAUDIOBACKENDSTS) drvHostALSAAudioGetStatus(PPDMIHOSTAUDIO pInterface, PDMAUDIODIR enmDir)
     1245static DECLCALLBACK(PDMAUDIOBACKENDSTS) drvHostAlsaAudioHA_GetStatus(PPDMIHOSTAUDIO pInterface, PDMAUDIODIR enmDir)
    12461246{
    12471247    RT_NOREF(enmDir);
     
    12551255 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamCreate}
    12561256 */
    1257 static DECLCALLBACK(int) drvHostALSAAudioStreamCreate(PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream,
    1258                                                       PPDMAUDIOSTREAMCFG pCfgReq, PPDMAUDIOSTREAMCFG pCfgAcq)
     1257static DECLCALLBACK(int) drvHostAlsaAudioHA_StreamCreate(PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream,
     1258                                                         PPDMAUDIOSTREAMCFG pCfgReq, PPDMAUDIOSTREAMCFG pCfgAcq)
    12591259{
    12601260    AssertPtrReturn(pInterface, VERR_INVALID_POINTER);
     
    12851285 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamDestroy}
    12861286 */
    1287 static DECLCALLBACK(int) drvHostALSAAudioStreamDestroy(PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream)
     1287static DECLCALLBACK(int) drvHostAlsaAudioHA_StreamDestroy(PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream)
    12881288{
    12891289    AssertPtrReturn(pInterface, VERR_INVALID_POINTER);
     
    13141314 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamControl}
    13151315 */
    1316 static DECLCALLBACK(int) drvHostALSAAudioStreamControl(PPDMIHOSTAUDIO pInterface,
    1317                                                        PPDMAUDIOBACKENDSTREAM pStream, PDMAUDIOSTREAMCMD enmStreamCmd)
     1316static DECLCALLBACK(int) drvHostAlsaAudioHA_StreamControl(PPDMIHOSTAUDIO pInterface,
     1317                                                          PPDMAUDIOBACKENDSTREAM pStream, PDMAUDIOSTREAMCMD enmStreamCmd)
    13181318{
    13191319    AssertPtrReturn(pInterface, VERR_INVALID_POINTER);
     
    13381338 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamGetReadable}
    13391339 */
    1340 static DECLCALLBACK(uint32_t) drvHostALSAAudioStreamGetReadable(PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream)
     1340static DECLCALLBACK(uint32_t) drvHostAlsaAudioHA_StreamGetReadable(PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream)
    13411341{
    13421342    RT_NOREF(pInterface);
     
    13581358 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamGetWritable}
    13591359 */
    1360 static DECLCALLBACK(uint32_t) drvHostALSAAudioStreamGetWritable(PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream)
     1360static DECLCALLBACK(uint32_t) drvHostAlsaAudioHA_StreamGetWritable(PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream)
    13611361{
    13621362    RT_NOREF(pInterface);
     
    14161416 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamGetStatus}
    14171417 */
    1418 static DECLCALLBACK(PDMAUDIOSTREAMSTS) drvHostALSAAudioStreamGetStatus(PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream)
     1418static DECLCALLBACK(PDMAUDIOSTREAMSTS) drvHostAlsaAudioHA_StreamGetStatus(PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream)
    14191419{
    14201420    RT_NOREF(pInterface, pStream);
    14211421
    1422     return (PDMAUDIOSTREAMSTS_FLAG_INITIALIZED | PDMAUDIOSTREAMSTS_FLAG_ENABLED);
     1422    return PDMAUDIOSTREAMSTS_FLAGS_INITIALIZED | PDMAUDIOSTREAMSTS_FLAGS_ENABLED;
    14231423}
    14241424
     
    14271427 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamIterate}
    14281428 */
    1429 static DECLCALLBACK(int) drvHostALSAAudioStreamIterate(PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream)
     1429static DECLCALLBACK(int) drvHostAlsaAudioHA_StreamIterate(PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream)
    14301430{
    14311431    AssertPtrReturn(pInterface, VERR_INVALID_POINTER);
     
    14421442 * @interface_method_impl{PDMIBASE,pfnQueryInterface}
    14431443 */
    1444 static DECLCALLBACK(void *) drvHostALSAAudioQueryInterface(PPDMIBASE pInterface, const char *pszIID)
     1444static DECLCALLBACK(void *) drvHostAlsaAudioQueryInterface(PPDMIBASE pInterface, const char *pszIID)
    14451445{
    14461446    PPDMDRVINS        pDrvIns = PDMIBASE_2_PDMDRV(pInterface);
     
    14701470    pThis->pDrvIns                   = pDrvIns;
    14711471    /* IBase */
    1472     pDrvIns->IBase.pfnQueryInterface = drvHostALSAAudioQueryInterface;
     1472    pDrvIns->IBase.pfnQueryInterface = drvHostAlsaAudioQueryInterface;
    14731473    /* IHostAudio */
    1474     PDMAUDIO_IHOSTAUDIO_CALLBACKS(drvHostALSAAudio);
    1475     pThis->IHostAudio.pfnStreamGetPending = drvHostALSAStreamGetPending;
     1474    pThis->IHostAudio.pfnInit               = drvHostAlsaAudioHA_Init;
     1475    pThis->IHostAudio.pfnShutdown           = drvHostAlsaAudioHA_Shutdown;
     1476    pThis->IHostAudio.pfnGetConfig          = drvHostAlsaAudioHA_GetConfig;
     1477    pThis->IHostAudio.pfnGetStatus          = drvHostAlsaAudioHA_GetStatus;
     1478    pThis->IHostAudio.pfnStreamCreate       = drvHostAlsaAudioHA_StreamCreate;
     1479    pThis->IHostAudio.pfnStreamDestroy      = drvHostAlsaAudioHA_StreamDestroy;
     1480    pThis->IHostAudio.pfnStreamControl      = drvHostAlsaAudioHA_StreamControl;
     1481    pThis->IHostAudio.pfnStreamGetReadable  = drvHostAlsaAudioHA_StreamGetReadable;
     1482    pThis->IHostAudio.pfnStreamGetWritable  = drvHostAlsaAudioHA_StreamGetWritable;
     1483    pThis->IHostAudio.pfnStreamGetStatus    = drvHostAlsaAudioHA_StreamGetStatus;
     1484    pThis->IHostAudio.pfnStreamIterate      = drvHostAlsaAudioHA_StreamIterate;
     1485    pThis->IHostAudio.pfnStreamPlay         = drvHostAlsaAudioHA_StreamPlay;
     1486    pThis->IHostAudio.pfnStreamCapture      = drvHostAlsaAudioHA_StreamCapture;
     1487    pThis->IHostAudio.pfnSetCallback        = NULL;
     1488    pThis->IHostAudio.pfnGetDevices         = NULL;
     1489    pThis->IHostAudio.pfnStreamGetPending   = drvHostALSAStreamGetPending;
     1490    pThis->IHostAudio.pfnStreamPlayBegin    = NULL;
     1491    pThis->IHostAudio.pfnStreamPlayEnd      = NULL;
     1492    pThis->IHostAudio.pfnStreamCaptureBegin = NULL;
     1493    pThis->IHostAudio.pfnStreamCaptureEnd   = NULL;
     1494
    14761495
    14771496    return VINF_SUCCESS;
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