Changeset 88378 in vbox
- Timestamp:
- Apr 7, 2021 7:58:26 AM (4 years ago)
- Location:
- trunk
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/pdmaudioifs.h
r88362 r88378 1368 1368 1369 1369 /** 1370 * Signals the backend that the host finished playing for this iteration. Optional.1371 *1372 * @param pInterface Pointer to the interface structure containing the called function pointer.1373 * @param pStream Pointer to audio stream.1374 */1375 DECLR3CALLBACKMEMBER(void, pfnStreamPlayEnd, (PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream));1376 1377 /**1378 * Signals the backend that the host wants to begin capturing for this iteration. Optional.1379 *1380 * @param pInterface Pointer to the interface structure containing the called function pointer.1381 * @param pStream Pointer to audio stream.1382 */1383 DECLR3CALLBACKMEMBER(void, pfnStreamCaptureBegin, (PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream));1384 1385 /**1386 1370 * Captures (reads from) an audio (input) stream. 1387 1371 * … … 1398 1382 void *pvBuf, uint32_t uBufSize, uint32_t *puRead)); 1399 1383 1400 /**1401 * Signals the backend that the host finished capturing for this iteration. Optional.1402 *1403 * @param pInterface Pointer to the interface structure containing the called function pointer.1404 * @param pStream Pointer to audio stream.1405 */1406 DECLR3CALLBACKMEMBER(void, pfnStreamCaptureEnd, (PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream));1407 1408 1384 } PDMIHOSTAUDIO; 1409 1385 1410 1386 /** PDMIHOSTAUDIO interface ID. */ 1411 #define PDMIHOSTAUDIO_IID " fafc2dfb-eaa8-4e8f-9d13-ffe9163e7c51"1387 #define PDMIHOSTAUDIO_IID "cf8dcd5f-0077-499e-9db1-1161b046fded" 1412 1388 1413 1389 -
trunk/src/VBox/Devices/Audio/DrvAudio.cpp
r88375 r88378 1648 1648 if (cFramesToPlay) 1649 1649 { 1650 if (pThis->pHostDrvAudio->pfnStreamPlayBegin)1651 pThis->pHostDrvAudio->pfnStreamPlayBegin(pThis->pHostDrvAudio, pStreamEx->pvBackend);1652 1653 1650 rc = drvAudioStreamPlayDoIt(pThis, pStreamEx, cFramesToPlay, pcFramesPlayed); 1654 1655 if (pThis->pHostDrvAudio->pfnStreamPlayEnd)1656 pThis->pHostDrvAudio->pfnStreamPlayEnd(pThis->pHostDrvAudio, pStreamEx->pvBackend);1657 1651 1658 1652 pStreamEx->nsLastPlayedCaptured = RTTimeNanoTS(); … … 1935 1929 * Do the actual capturing. 1936 1930 */ 1937 if (pThis->pHostDrvAudio->pfnStreamCaptureBegin)1938 pThis->pHostDrvAudio->pfnStreamCaptureBegin(pThis->pHostDrvAudio, pStreamEx->pvBackend);1939 1940 1931 if (RT_LIKELY(pStreamEx->Host.Cfg.enmLayout == PDMAUDIOSTREAMLAYOUT_NON_INTERLEAVED)) 1941 1932 rc = drvAudioStreamCaptureNonInterleaved(pThis, pStreamEx, &cfCaptured); … … 1944 1935 else 1945 1936 AssertFailedStmt(rc = VERR_NOT_IMPLEMENTED); 1946 1947 if (pThis->pHostDrvAudio->pfnStreamCaptureEnd)1948 pThis->pHostDrvAudio->pfnStreamCaptureEnd(pThis->pHostDrvAudio, pStreamEx->pvBackend);1949 1937 1950 1938 if (RT_SUCCESS(rc)) … … 2077 2065 AssertPtrReturn(pHostDrvAudio->pfnStreamGetStatus, VERR_INVALID_POINTER); 2078 2066 AssertPtrReturn(pHostDrvAudio->pfnStreamIterate, VERR_INVALID_POINTER); 2079 AssertPtrNullReturn(pHostDrvAudio->pfnStreamPlayBegin, VERR_INVALID_POINTER);2080 2067 AssertPtrReturn(pHostDrvAudio->pfnStreamPlay, VERR_INVALID_POINTER); 2081 AssertPtrNullReturn(pHostDrvAudio->pfnStreamPlayEnd, VERR_INVALID_POINTER);2082 AssertPtrNullReturn(pHostDrvAudio->pfnStreamCaptureBegin, VERR_INVALID_POINTER);2083 2068 AssertPtrReturn(pHostDrvAudio->pfnStreamCapture, VERR_INVALID_POINTER); 2084 AssertPtrNullReturn(pHostDrvAudio->pfnStreamCaptureEnd, VERR_INVALID_POINTER);2085 2069 2086 2070 /* -
trunk/src/VBox/Devices/Audio/DrvHostAudioAlsa.cpp
r88362 r88378 1506 1506 pThis->IHostAudio.pfnGetDevices = NULL; 1507 1507 pThis->IHostAudio.pfnStreamGetPending = drvHostALSAStreamGetPending; 1508 pThis->IHostAudio.pfnStreamPlayBegin = NULL;1509 pThis->IHostAudio.pfnStreamPlayEnd = NULL;1510 pThis->IHostAudio.pfnStreamCaptureBegin = NULL;1511 pThis->IHostAudio.pfnStreamCaptureEnd = NULL;1512 1508 1513 1509 /* -
trunk/src/VBox/Devices/Audio/DrvHostAudioCoreAudio.cpp
r88362 r88378 2565 2565 pThis->IHostAudio.pfnGetDevices = drvHostCoreAudioHA_GetDevices; 2566 2566 pThis->IHostAudio.pfnStreamGetPending = NULL; 2567 pThis->IHostAudio.pfnStreamPlayBegin = NULL;2568 pThis->IHostAudio.pfnStreamPlayEnd = NULL;2569 pThis->IHostAudio.pfnStreamCaptureBegin = NULL;2570 pThis->IHostAudio.pfnStreamCaptureEnd = NULL;2571 2567 2572 2568 int rc = RTCritSectInit(&pThis->CritSect); -
trunk/src/VBox/Devices/Audio/DrvHostAudioDSound.cpp
r88376 r88378 2708 2708 pThis->IHostAudio.pfnGetDevices = drvHostDSoundHA_GetDevices; 2709 2709 pThis->IHostAudio.pfnStreamGetPending = NULL; 2710 pThis->IHostAudio.pfnStreamPlayBegin = NULL;2711 pThis->IHostAudio.pfnStreamPlayEnd = NULL;2712 pThis->IHostAudio.pfnStreamCaptureBegin = NULL;2713 pThis->IHostAudio.pfnStreamCaptureEnd = NULL;2714 2710 2715 2711 /* -
trunk/src/VBox/Devices/Audio/DrvHostAudioDebug.cpp
r88362 r88378 424 424 pThis->IHostAudio.pfnGetDevices = NULL; 425 425 pThis->IHostAudio.pfnStreamGetPending = NULL; 426 pThis->IHostAudio.pfnStreamPlayBegin = NULL;427 pThis->IHostAudio.pfnStreamPlayEnd = NULL;428 pThis->IHostAudio.pfnStreamCaptureBegin = NULL;429 pThis->IHostAudio.pfnStreamCaptureEnd = NULL;430 426 431 427 #ifdef VBOX_AUDIO_DEBUG_DUMP_PCM_DATA -
trunk/src/VBox/Devices/Audio/DrvHostAudioNull.cpp
r88362 r88378 362 362 pThis->IHostAudio.pfnGetDevices = NULL; 363 363 pThis->IHostAudio.pfnStreamGetPending = NULL; 364 pThis->IHostAudio.pfnStreamPlayBegin = NULL;365 pThis->IHostAudio.pfnStreamPlayEnd = NULL;366 pThis->IHostAudio.pfnStreamCaptureBegin = NULL;367 pThis->IHostAudio.pfnStreamCaptureEnd = NULL;368 364 369 365 return VINF_SUCCESS; -
trunk/src/VBox/Devices/Audio/DrvHostAudioOss.cpp
r88362 r88378 760 760 pThis->IHostAudio.pfnGetDevices = NULL; 761 761 pThis->IHostAudio.pfnStreamGetPending = NULL; 762 pThis->IHostAudio.pfnStreamPlayBegin = NULL;763 pThis->IHostAudio.pfnStreamPlayEnd = NULL;764 pThis->IHostAudio.pfnStreamCaptureBegin = NULL;765 pThis->IHostAudio.pfnStreamCaptureEnd = NULL;766 762 767 763 return VINF_SUCCESS; -
trunk/src/VBox/Devices/Audio/DrvHostAudioPulseAudio.cpp
r88362 r88378 1704 1704 pThis->IHostAudio.pfnGetDevices = NULL; 1705 1705 pThis->IHostAudio.pfnStreamGetPending = NULL; 1706 pThis->IHostAudio.pfnStreamPlayBegin = NULL;1707 pThis->IHostAudio.pfnStreamPlayEnd = NULL;1708 pThis->IHostAudio.pfnStreamCaptureBegin = NULL;1709 pThis->IHostAudio.pfnStreamCaptureEnd = NULL;1710 1706 1711 1707 int rc2 = CFGMR3QueryString(pCfg, "StreamName", pThis->szStreamName, sizeof(pThis->szStreamName)); -
trunk/src/VBox/Devices/Audio/DrvHostAudioValidationKit.cpp
r88362 r88378 427 427 pThis->IHostAudio.pfnGetDevices = NULL; 428 428 pThis->IHostAudio.pfnStreamGetPending = NULL; 429 pThis->IHostAudio.pfnStreamPlayBegin = NULL;430 pThis->IHostAudio.pfnStreamPlayEnd = NULL;431 pThis->IHostAudio.pfnStreamCaptureBegin = NULL;432 pThis->IHostAudio.pfnStreamCaptureEnd = NULL;433 429 434 430 return VINF_SUCCESS; -
trunk/src/VBox/Main/src-client/DrvAudioRec.cpp
r88362 r88378 1158 1158 pThis->IHostAudio.pfnGetDevices = NULL; 1159 1159 pThis->IHostAudio.pfnStreamGetPending = NULL; 1160 pThis->IHostAudio.pfnStreamPlayBegin = NULL;1161 pThis->IHostAudio.pfnStreamPlayEnd = NULL;1162 pThis->IHostAudio.pfnStreamCaptureBegin = NULL;1163 pThis->IHostAudio.pfnStreamCaptureEnd = NULL;1164 1160 1165 1161 /*
Note:
See TracChangeset
for help on using the changeset viewer.