Changeset 61409 in vbox for trunk/src/VBox
- Timestamp:
- Jun 2, 2016 12:12:29 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/AudioMixBuffer.cpp
r61386 r61409 1734 1734 *pcWritten = 0; 1735 1735 1736 AUDMIXBUF_LOG(("%s: Parent buffer %sis full\n",1736 AUDMIXBUF_LOG(("%s: Parent buffer '%s' is full\n", 1737 1737 pMixBuf->pszName, pMixBuf->pParent->pszName)); 1738 1738 … … 1829 1829 { 1830 1830 pMixBuf->offWrite = (pMixBuf->offWrite + cWrittenTotal) % pMixBuf->cSamples; 1831 pMixBuf->cUsed = RT_MIN(pMixBuf->cUsed + cWrittenTotal, 1832 pMixBuf->cSamples /* Max */); 1833 1834 uint32_t cProcessedTotal = pMixBuf->cUsed + cWrittenTotal; 1835 if (cProcessedTotal > pMixBuf->cSamples) 1831 pMixBuf->cUsed += cWrittenTotal; 1832 1833 if (pMixBuf->cUsed > pMixBuf->cSamples) 1836 1834 { 1837 AUDMIXBUF_LOG(("Warning: %RU32 unprocessed samples overwritten\n", cProcessedTotal- pMixBuf->cSamples));1835 AUDMIXBUF_LOG(("Warning: %RU32 unprocessed samples overwritten\n", pMixBuf->cUsed - pMixBuf->cSamples)); 1838 1836 pMixBuf->cUsed = pMixBuf->cSamples; 1839 1837
Note:
See TracChangeset
for help on using the changeset viewer.