Changeset 59060 in vbox for trunk/src/VBox/Devices/Audio
- Timestamp:
- Dec 8, 2015 3:23:12 PM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 104613
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DrvHostDSound.cpp
r59059 r59060 1425 1425 if (RT_SUCCESS(rc)) 1426 1426 { 1427 if (pcSamplesPlayed)1428 *pcSamplesPlayed = cReadTotal;1427 if (pcSamplesPlayed) 1428 *pcSamplesPlayed = cReadTotal; 1429 1429 } 1430 1430 … … 1561 1561 if (pDSCB == NULL) 1562 1562 { 1563 1564 1565 1566 1563 pThis->fEnabledIn = false; 1564 1565 rc = VERR_NOT_AVAILABLE; 1566 break; 1567 1567 } 1568 1568 … … 1578 1578 } 1579 1579 1580 1581 1580 rc = VERR_NOT_AVAILABLE; 1581 break; 1582 1582 } 1583 1583 … … 1593 1593 DWORD csCaptured = dsoundRingDistance(csReadPos, pDSoundStrmIn->csCaptureReadPos, pDSoundStrmIn->csCaptureBufferSize); 1594 1594 if (csCaptured == 0) 1595 1595 break; 1596 1596 1597 1597 /* Using as an intermediate not circular buffer. */ … … 1603 1603 { 1604 1604 DSLOGF(("DSound: Capture buffer full\n")); 1605 1605 break; 1606 1606 } 1607 1607 … … 1622 1622 if (FAILED(hr)) 1623 1623 { 1624 1625 1624 rc = VERR_ACCESS_DENIED; 1625 break; 1626 1626 } 1627 1627 … … 1651 1651 directSoundCaptureUnlock(pDSCB, pv1, pv2, cb1, cb2); 1652 1652 1653 1654 1653 if (csWrittenTotal) /* Captured something? */ 1654 rc = AudioMixBufMixToParent(&pHstStrmIn->MixBuf, csWrittenTotal, &cCaptured); 1655 1655 1656 1656 if (RT_SUCCESS(rc)) 1657 1657 { 1658 1658 pDSoundStrmIn->csCaptureReadPos = (pDSoundStrmIn->csCaptureReadPos + cCaptured) % pDSoundStrmIn->csCaptureBufferSize; 1659 1659 DSLOGF(("DSound: Capture %ld (%ld+%ld), processed %RU32/%RU32\n", 1660 1660 csCaptured, len1, len2, cCaptured, csWrittenTotal)); 1661 1661 } 1662 1662 … … 2091 2091 "DirectSound Audio host driver", 2092 2092 /* fFlags */ 2093 2093 PDM_DRVREG_FLAGS_HOST_BITS_DEFAULT, 2094 2094 /* fClass. */ 2095 2095 PDM_DRVREG_CLASS_AUDIO,
Note:
See TracChangeset
for help on using the changeset viewer.