VirtualBox

Changeset 88773 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Apr 29, 2021 9:54:41 AM (4 years ago)
Author:
vboxsync
Message:

Audio/SB16: Implemented support for async I/O (disabled by default); a lot of code cleanup / reorganization to support more streams in the future [build fix]. bugref:9890

File:
1 edited

Legend:

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

    r88769 r88773  
    26022602            RTCircBufAcquireReadBlock(pStream->State.pCircBuf, cbToReadFromStream, &pvSrcBuf, &cbSrcBuf);
    26032603
    2604             int rc2 = AudioMixerSinkWrite(pSink, AUDMIXOP_COPY, pvSrcBuf, cbSrcBuf, &cbWritten);
     2604            int rc2 = AudioMixerSinkWrite(pSink, AUDMIXOP_COPY, pvSrcBuf, (uint32_t)cbSrcBuf, &cbWritten);
    26052605            AssertRC(rc2);
    2606             Assert(cbWritten <= cbSrcBuf);
     2606            Assert(cbWritten <= (uint32_t)cbSrcBuf);
    26072607
    26082608            RTCircBufReleaseReadBlock(pStream->State.pCircBuf, cbWritten);
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