- Timestamp:
- Oct 19, 2016 8:58:02 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DrvHostCoreAudio.cpp
r64171 r64314 2016 2016 RTCircBufAcquireReadBlock(pCircBuf, cbLeft, (void **)&pvSrc, &cbToRead); 2017 2017 2018 /* Break if nothing is used anymore. */ 2018 if (cbToRead) 2019 { 2020 /* Copy the data from our ring buffer to the core audio buffer. */ 2021 memcpy((UInt8 *)pvDst + cbRead, pvSrc, cbToRead); 2022 } 2023 2024 /* Release the read buffer, so it could be used for new data. */ 2025 RTCircBufReleaseReadBlock(pCircBuf, cbToRead); 2026 2019 2027 if (!cbToRead) 2020 2028 break; 2021 2022 /* Copy the data from our ring buffer to the core audio buffer. */2023 memcpy((UInt8 *)pvDst + cbRead, pvSrc, cbToRead);2024 2025 /* Release the read buffer, so it could be used for new data. */2026 RTCircBufReleaseReadBlock(pCircBuf, cbToRead);2027 2029 2028 2030 /* Move offset. */
Note:
See TracChangeset
for help on using the changeset viewer.