VirtualBox

Changeset 64314 in vbox for trunk/src


Ignore:
Timestamp:
Oct 19, 2016 8:58:02 AM (8 years ago)
Author:
vboxsync
Message:

Audio/DrvHostCoreAudio.cpp: Match to 5.1/5.0.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/DrvHostCoreAudio.cpp

    r64171 r64314  
    20162016        RTCircBufAcquireReadBlock(pCircBuf, cbLeft, (void **)&pvSrc, &cbToRead);
    20172017
    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
    20192027        if (!cbToRead)
    20202028            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);
    20272029
    20282030        /* Move offset. */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette