Changeset 89405 in vbox for trunk/src/VBox/Devices
- Timestamp:
- May 31, 2021 1:58:57 PM (4 years ago)
- Location:
- trunk/src/VBox/Devices/Audio
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/AudioMixBuffer-Convert.cpp.h
r89400 r89405 139 139 int8_t idxSrc = pState->aidxChannelMap[idxDst]; 140 140 if (idxSrc >= 0) 141 pi32Dst[idxDst] = RT_CONCAT(audioMixBufSample To,a_Name)(pSrc[idxSrc]);141 pi32Dst[idxDst] = RT_CONCAT(audioMixBufSampleFrom,a_Name)(pSrc[idxSrc]); 142 142 else if (idxSrc != -2) 143 143 pi32Dst[idxDst] = (a_fSigned) ? 0 : (a_Max >> 1); … … 227 227 int8_t idxSrc = pState->aidxChannelMap[idxDst]; 228 228 if (idxSrc >= 0) 229 audioMixBufBlendSample(&pi32Dst[idxDst], RT_CONCAT(audioMixBufSample To,a_Name)(pSrc[idxSrc]));229 audioMixBufBlendSample(&pi32Dst[idxDst], RT_CONCAT(audioMixBufSampleFrom,a_Name)(pSrc[idxSrc])); 230 230 } 231 231 pi32Dst += cDstChannels; -
trunk/src/VBox/Devices/Audio/AudioMixBuffer.cpp
r89400 r89405 1563 1563 pState->pfnEncode((uint8_t *)pvDst + cSrcFrames1 * pState->cbDstFrame, 1564 1564 &pMixBuf->pi32Samples[0], cMaxSrcFrames - cSrcFrames1, pState); 1565 1566 //Log9Func(("*pcbDstPeeked=%#x\n%32.*Rhxd\n", *pcbDstPeeked, *pcbDstPeeked, pvDst)); 1565 1567 } 1566 1568 else … … 1659 1661 *pcDstFramesWritten = cMaxDstFrames; 1660 1662 1663 //Log10Func(("cbSrc=%#x\n%32.*Rhxd\n", pState->cbSrcFrame * cMaxDstFrames, pState->cbSrcFrame * cMaxDstFrames, pvSrcBuf)); 1664 1661 1665 /* First chunk. */ 1662 1666 uint32_t const cDstFrames1 = RT_MIN(pMixBuf->cFrames - offDstFrame, cMaxDstFrames); 1663 1667 pState->pfnDecode(&pMixBuf->pi32Samples[offDstFrame * pMixBuf->cChannels], pvSrcBuf, cDstFrames1, pState); 1668 //Log8Func(("offDstFrame=%#x cDstFrames1=%#x\n%32.*Rhxd\n", offDstFrame, cDstFrames1, 1669 // cDstFrames1 * pMixBuf->cbFrame, &pMixBuf->pi32Samples[offDstFrame * pMixBuf->cChannels])); 1664 1670 1665 1671 /* Another chunk from the start of the mixing buffer? */ 1666 1672 if (cMaxDstFrames > cDstFrames1) 1673 { 1667 1674 pState->pfnDecode(&pMixBuf->pi32Samples[0], (uint8_t *)pvSrcBuf + cDstFrames1 * pState->cbSrcFrame, 1668 1675 cMaxDstFrames - cDstFrames1, pState); 1676 //Log8Func(("cDstFrames2=%#x\n%32.*Rhxd\n", cMaxDstFrames - cDstFrames1, 1677 // (cMaxDstFrames - cDstFrames1) * pMixBuf->cbFrame, &pMixBuf->pi32Samples[0])); 1678 } 1669 1679 } 1670 1680 else
Note:
See TracChangeset
for help on using the changeset viewer.