Changeset 82255 in vbox for trunk/src/VBox/Devices/Audio/DrvHostALSAAudio.cpp
- Timestamp:
- Nov 27, 2019 11:20:26 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DrvHostALSAAudio.cpp
r82254 r82255 585 585 * @interface_method_impl{PDMIHOSTAUDIO,pfnInit} 586 586 */ 587 static DECLCALLBACK(int) drvHostA LSAAudioInit(PPDMIHOSTAUDIO pInterface)587 static DECLCALLBACK(int) drvHostAlsaAudioHA_Init(PPDMIHOSTAUDIO pInterface) 588 588 { 589 589 RT_NOREF(pInterface); … … 608 608 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamCapture} 609 609 */ 610 static DECLCALLBACK(int) drvHostA LSAAudioStreamCapture(PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream,611 void *pvBuf, uint32_t uBufSize, uint32_t *puRead)610 static DECLCALLBACK(int) drvHostAlsaAudioHA_StreamCapture(PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream, 611 void *pvBuf, uint32_t uBufSize, uint32_t *puRead) 612 612 { 613 613 AssertPtrReturn(pInterface, VERR_INVALID_POINTER); … … 751 751 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamPlay} 752 752 */ 753 static DECLCALLBACK(int) drvHostA LSAAudioStreamPlay(PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream,754 const void *pvBuf, uint32_t uBufSize, uint32_t *puWritten)753 static DECLCALLBACK(int) drvHostAlsaAudioHA_StreamPlay(PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream, 754 const void *pvBuf, uint32_t uBufSize, uint32_t *puWritten) 755 755 { 756 756 AssertPtrReturn(pInterface, VERR_INVALID_POINTER); … … 1159 1159 * @interface_method_impl{PDMIHOSTAUDIO,pfnGetConfig} 1160 1160 */ 1161 static DECLCALLBACK(int) drvHostA LSAAudioGetConfig(PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDCFG pBackendCfg)1161 static DECLCALLBACK(int) drvHostAlsaAudioHA_GetConfig(PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDCFG pBackendCfg) 1162 1162 { 1163 1163 RT_NOREF(pInterface); … … 1234 1234 * @interface_method_impl{PDMIHOSTAUDIO,pfnShutdown} 1235 1235 */ 1236 static DECLCALLBACK(void) drvHostA LSAAudioShutdown(PPDMIHOSTAUDIO pInterface)1236 static DECLCALLBACK(void) drvHostAlsaAudioHA_Shutdown(PPDMIHOSTAUDIO pInterface) 1237 1237 { 1238 1238 RT_NOREF(pInterface); … … 1243 1243 * @interface_method_impl{PDMIHOSTAUDIO,pfnGetStatus} 1244 1244 */ 1245 static DECLCALLBACK(PDMAUDIOBACKENDSTS) drvHostA LSAAudioGetStatus(PPDMIHOSTAUDIO pInterface, PDMAUDIODIR enmDir)1245 static DECLCALLBACK(PDMAUDIOBACKENDSTS) drvHostAlsaAudioHA_GetStatus(PPDMIHOSTAUDIO pInterface, PDMAUDIODIR enmDir) 1246 1246 { 1247 1247 RT_NOREF(enmDir); … … 1255 1255 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamCreate} 1256 1256 */ 1257 static DECLCALLBACK(int) drvHostA LSAAudioStreamCreate(PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream,1258 PPDMAUDIOSTREAMCFG pCfgReq, PPDMAUDIOSTREAMCFG pCfgAcq)1257 static DECLCALLBACK(int) drvHostAlsaAudioHA_StreamCreate(PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream, 1258 PPDMAUDIOSTREAMCFG pCfgReq, PPDMAUDIOSTREAMCFG pCfgAcq) 1259 1259 { 1260 1260 AssertPtrReturn(pInterface, VERR_INVALID_POINTER); … … 1285 1285 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamDestroy} 1286 1286 */ 1287 static DECLCALLBACK(int) drvHostA LSAAudioStreamDestroy(PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream)1287 static DECLCALLBACK(int) drvHostAlsaAudioHA_StreamDestroy(PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream) 1288 1288 { 1289 1289 AssertPtrReturn(pInterface, VERR_INVALID_POINTER); … … 1314 1314 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamControl} 1315 1315 */ 1316 static DECLCALLBACK(int) drvHostA LSAAudioStreamControl(PPDMIHOSTAUDIO pInterface,1317 PPDMAUDIOBACKENDSTREAM pStream, PDMAUDIOSTREAMCMD enmStreamCmd)1316 static DECLCALLBACK(int) drvHostAlsaAudioHA_StreamControl(PPDMIHOSTAUDIO pInterface, 1317 PPDMAUDIOBACKENDSTREAM pStream, PDMAUDIOSTREAMCMD enmStreamCmd) 1318 1318 { 1319 1319 AssertPtrReturn(pInterface, VERR_INVALID_POINTER); … … 1338 1338 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamGetReadable} 1339 1339 */ 1340 static DECLCALLBACK(uint32_t) drvHostA LSAAudioStreamGetReadable(PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream)1340 static DECLCALLBACK(uint32_t) drvHostAlsaAudioHA_StreamGetReadable(PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream) 1341 1341 { 1342 1342 RT_NOREF(pInterface); … … 1358 1358 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamGetWritable} 1359 1359 */ 1360 static DECLCALLBACK(uint32_t) drvHostA LSAAudioStreamGetWritable(PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream)1360 static DECLCALLBACK(uint32_t) drvHostAlsaAudioHA_StreamGetWritable(PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream) 1361 1361 { 1362 1362 RT_NOREF(pInterface); … … 1416 1416 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamGetStatus} 1417 1417 */ 1418 static DECLCALLBACK(PDMAUDIOSTREAMSTS) drvHostA LSAAudioStreamGetStatus(PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream)1418 static DECLCALLBACK(PDMAUDIOSTREAMSTS) drvHostAlsaAudioHA_StreamGetStatus(PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream) 1419 1419 { 1420 1420 RT_NOREF(pInterface, pStream); 1421 1421 1422 return (PDMAUDIOSTREAMSTS_FLAG_INITIALIZED | PDMAUDIOSTREAMSTS_FLAG_ENABLED);1422 return PDMAUDIOSTREAMSTS_FLAGS_INITIALIZED | PDMAUDIOSTREAMSTS_FLAGS_ENABLED; 1423 1423 } 1424 1424 … … 1427 1427 * @interface_method_impl{PDMIHOSTAUDIO,pfnStreamIterate} 1428 1428 */ 1429 static DECLCALLBACK(int) drvHostA LSAAudioStreamIterate(PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream)1429 static DECLCALLBACK(int) drvHostAlsaAudioHA_StreamIterate(PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream) 1430 1430 { 1431 1431 AssertPtrReturn(pInterface, VERR_INVALID_POINTER); … … 1442 1442 * @interface_method_impl{PDMIBASE,pfnQueryInterface} 1443 1443 */ 1444 static DECLCALLBACK(void *) drvHostA LSAAudioQueryInterface(PPDMIBASE pInterface, const char *pszIID)1444 static DECLCALLBACK(void *) drvHostAlsaAudioQueryInterface(PPDMIBASE pInterface, const char *pszIID) 1445 1445 { 1446 1446 PPDMDRVINS pDrvIns = PDMIBASE_2_PDMDRV(pInterface); … … 1470 1470 pThis->pDrvIns = pDrvIns; 1471 1471 /* IBase */ 1472 pDrvIns->IBase.pfnQueryInterface = drvHostA LSAAudioQueryInterface;1472 pDrvIns->IBase.pfnQueryInterface = drvHostAlsaAudioQueryInterface; 1473 1473 /* 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 1476 1495 1477 1496 return VINF_SUCCESS;
Note:
See TracChangeset
for help on using the changeset viewer.