Changeset 89440 in vbox for trunk/src/VBox
- Timestamp:
- Jun 1, 2021 8:09:52 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/AudioMixBuffer.cpp
r89405 r89440 1474 1474 */ 1475 1475 DECL_NO_INLINE(static, void) 1476 AudioMixBufPeekResampling(PCAUDIOMIXBUF pMixBuf, uint32_t offSrcFrame, uint32_t cMaxSrcFrames, uint32_t *pcSrcFramesPeeked,1476 audioMixBufPeekResampling(PCAUDIOMIXBUF pMixBuf, uint32_t offSrcFrame, uint32_t cMaxSrcFrames, uint32_t *pcSrcFramesPeeked, 1477 1477 PAUDIOMIXBUFPEEKSTATE pState, void *pvDst, uint32_t cbDst, uint32_t *pcbDstPeeked) 1478 1478 { … … 1484 1484 int32_t ai32DstRate[1024]; 1485 1485 uint32_t cSrcFrames = RT_MIN(pMixBuf->cFrames - offSrcFrame, cMaxSrcFrames); 1486 uint32_t cMaxDstFrames = RT_MIN(RT_ELEMENTS(ai32DstRate) / pState->c DstChannels, cbDst / pState->cbDstFrame);1486 uint32_t cMaxDstFrames = RT_MIN(RT_ELEMENTS(ai32DstRate) / pState->cSrcChannels, cbDst / pState->cbDstFrame); 1487 1487 uint32_t const cDstFrames = pState->Rate.pfnResample(ai32DstRate, cMaxDstFrames, 1488 1488 &pMixBuf->pi32Samples[offSrcFrame * pMixBuf->cChannels], … … 1567 1567 } 1568 1568 else 1569 AudioMixBufPeekResampling(pMixBuf, offSrcFrame, cMaxSrcFrames, pcSrcFramesPeeked, pState, pvDst, cbDst, pcbDstPeeked);1569 audioMixBufPeekResampling(pMixBuf, offSrcFrame, cMaxSrcFrames, pcSrcFramesPeeked, pState, pvDst, cbDst, pcbDstPeeked); 1570 1570 } 1571 1571
Note:
See TracChangeset
for help on using the changeset viewer.