Changeset 67647 in vbox for trunk/src/VBox
- Timestamp:
- Jun 27, 2017 4:38:49 PM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 116421
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DrvAudio.cpp
r67607 r67647 1318 1318 rc = pThis->pHostDrvAudio->pfnStreamPlay(pThis->pHostDrvAudio, pHstStream->pvBackend, 1319 1319 auBuf, cbRead, &cbPlayed); 1320 if (RT_FAILURE(rc)) 1320 if ( RT_FAILURE(rc) 1321 || !cbPlayed) 1322 { 1321 1323 break; 1324 } 1322 1325 1323 1326 #ifdef VBOX_AUDIO_DEBUG_DUMP_PCM_DATA … … 1400 1403 && csRead) 1401 1404 { 1402 uint32_t csPlayedChunk; 1403 1405 uint32_t csPlayed; 1406 1407 /* Note: As the stream layout is RPDMAUDIOSTREAMLAYOUT_RAW, operate on audio frames 1408 * rather on bytes. */ 1404 1409 Assert(csRead <= RT_ELEMENTS(aSampleBuf)); 1405 1410 rc = pThis->pHostDrvAudio->pfnStreamPlay(pThis->pHostDrvAudio, pHstStream->pvBackend, 1406 aSampleBuf, csRead, &csPlayedChunk); 1407 if (RT_FAILURE(rc)) 1411 aSampleBuf, csRead, &csPlayed); 1412 if ( RT_FAILURE(rc) 1413 || !csPlayed) 1414 { 1408 1415 break; 1409 1410 csPlayedTotal += csPlayedChunk; 1416 } 1417 1418 csPlayedTotal += csPlayed; 1411 1419 Assert(csPlayedTotal <= csToPlay); 1412 1420
Note:
See TracChangeset
for help on using the changeset viewer.