Changeset 88468 in vbox
- Timestamp:
- Apr 12, 2021 12:08:08 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DrvHostAudioCoreAudio.cpp
r88391 r88468 1898 1898 */ 1899 1899 static DECLCALLBACK(int) drvHostCoreAudioHA_StreamCapture(PPDMIHOSTAUDIO pInterface, PPDMAUDIOBACKENDSTREAM pStream, 1900 void *pvBuf, uint32_t uBufSize, uint32_t *puRead)1900 void *pvBuf, uint32_t cbBuf, uint32_t *pcbRead) 1901 1901 { 1902 1902 AssertPtrReturn(pInterface, VERR_INVALID_POINTER); 1903 AssertPtrReturn(pStream, VERR_INVALID_POINTER);1904 /* puRead is optional. */1903 AssertPtrReturn(pStream, VERR_INVALID_POINTER); 1904 AssertPtrReturn(pcbRead, VERR_INVALID_POINTER); 1905 1905 1906 1906 PCOREAUDIOSTREAM pCAStream = (PCOREAUDIOSTREAM)pStream; … … 1927 1927 if (ASMAtomicReadU32(&pCAStream->enmStatus) != COREAUDIOSTATUS_INIT) 1928 1928 { 1929 if (puRead) 1930 *puRead = 0; 1929 *pcbRead = 0; 1931 1930 return VINF_SUCCESS; 1932 1931 } … … 1941 1940 do 1942 1941 { 1943 size_t cbToWrite = RT_MIN( uBufSize, RTCircBufUsed(pCAStream->pCircBuf));1942 size_t cbToWrite = RT_MIN(cbBuf, RTCircBufUsed(pCAStream->pCircBuf)); 1944 1943 1945 1944 uint8_t *pvChunk; … … 1973 1972 1974 1973 if (RT_SUCCESS(rc)) 1975 { 1976 if (puRead) 1977 *puRead = cbReadTotal; 1978 } 1974 *pcbRead = cbReadTotal; 1979 1975 1980 1976 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.

