Changeset 88512 in vbox
- Timestamp:
- Apr 14, 2021 7:04:27 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DrvHostAudioPulseAudio.cpp
r88511 r88512 1523 1523 size_t cbWritablePa = pa_stream_writable_size(pStreamPA->pStream); 1524 1524 if (cbWritablePa != (size_t)-1) 1525 { 1526 /* Don't report more writable than the PA server can handle. */ 1527 if (cbWritablePa <= pStreamPA->BufAttr.maxlength) 1528 cbWritable = (uint32_t)cbWritablePa; 1529 else 1530 { 1531 Log3Func(("Clamping cbWritablePa=%#zx to maxLength=%#RX32\n", cbWritablePa, pStreamPA->BufAttr.maxlength)); 1532 cbWritable = (uint32_t)pStreamPA->BufAttr.maxlength; 1533 } 1534 } 1525 cbWritable = cbWritablePa <= UINT32_MAX ? (uint32_t)cbWritablePa : UINT32_MAX; 1535 1526 else 1536 1527 drvHostAudioPaError(pThis, "pa_stream_writable_size failed on '%s'", pStreamPA->Cfg.szName); … … 1589 1580 #ifdef LOG_ENABLED 1590 1581 const pa_usec_t tsNowUs = pa_rtclock_now(); 1591 Log3Func(("play delta: % RU64 us; cbBuf=%#x\n", tsNowUs - pStreamPA->tsLastReadWrittenUs, cbBuf));1582 Log3Func(("play delta: %'RU64 us; cbBuf=%#x\n", tsNowUs - pStreamPA->tsLastReadWrittenUs, cbBuf)); 1592 1583 pStreamPA->tsLastReadWrittenUs = tsNowUs; 1593 1584 #endif … … 1660 1651 #ifdef LOG_ENABLED 1661 1652 const pa_usec_t tsNowUs = pa_rtclock_now(); 1662 Log3Func(("capture delta: % RU64 us; cbBuf=%#x\n", tsNowUs - pStreamPA->tsLastReadWrittenUs, cbBuf));1653 Log3Func(("capture delta: %'RU64 us; cbBuf=%#x\n", tsNowUs - pStreamPA->tsLastReadWrittenUs, cbBuf)); 1663 1654 pStreamPA->tsLastReadWrittenUs = tsNowUs; 1664 1655 #endif
Note:
See TracChangeset
for help on using the changeset viewer.

