Changeset 67909 in vbox
- Timestamp:
- Jul 11, 2017 2:38:55 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DrvHostPulseAudio.cpp
r67576 r67909 889 889 } 890 890 891 size_t cbToWrite = RT_MIN(cbWriteable, cbBuf); 892 893 uint32_t cbWritten; 894 while (cbToWrite) 895 { 896 cbWritten = cbToWrite; 897 if (pa_stream_write(pPAStream->pStream, (uint8_t *)pvBuf + cbWrittenTotal, cbWritten, NULL /* Cleanup callback */, 891 size_t cbLeft = RT_MIN(cbWriteable, cbBuf); 892 893 while (cbLeft) 894 { 895 size_t cbToWrite = RT_MIN(cbLeft, pa_stream_writable_size(pPAStream->pStream)); 896 if (cbToWrite <= (size_t)0) 897 break; 898 899 if (pa_stream_write(pPAStream->pStream, (uint8_t *)pvBuf + cbWrittenTotal, cbToWrite, NULL /* Cleanup callback */, 898 900 0, PA_SEEK_RELATIVE) < 0) 899 901 { … … 902 904 } 903 905 904 Assert(cb ToWrite >= cbWritten);905 cb ToWrite -= cbWritten;906 cbWrittenTotal += cb Written;906 Assert(cbLeft >= cbToWrite); 907 cbLeft -= cbToWrite; 908 cbWrittenTotal += cbToWrite; 907 909 } 908 910
Note:
See TracChangeset
for help on using the changeset viewer.