Changeset 88378 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Apr 7, 2021 7:58:26 AM (4 years ago)
- Location:
- trunk/src/VBox/Devices/Audio
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
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;
Note:
See TracChangeset
for help on using the changeset viewer.