VirtualBox

Changeset 96262 in vbox


Ignore:
Timestamp:
Aug 17, 2022 12:16:13 PM (2 years ago)
Author:
vboxsync
Message:

Recording/Main: Greatly reduced workload spent in the recording driver's async I/O thread by also encoding the audio data in the dedicated recording thread (using two different block maps, see comments for details) [build fix]. bugref:10275

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/DrvAudioRec.cpp

    r96261 r96262  
    545545    AssertPtr(pCircBuf);
    546546
    547     uint32_t cbToWrite = RT_MIN(cbBuf, RTCircBufFree(pCircBuf));
     547    uint32_t cbToWrite = RT_MIN(cbBuf, (uint32_t)RTCircBufFree(pCircBuf));
    548548    AssertReturn(cbToWrite, VERR_BUFFER_OVERFLOW);
    549549
     
    574574     * Process our internal ring buffer and send the obtained audio data to our encoding thread.
    575575     */
    576     cbToWrite = RTCircBufUsed(pCircBuf);
     576    cbToWrite = (uint32_t)RTCircBufUsed(pCircBuf);
    577577
    578578    /** @todo Can we encode more than a frame at a time? Optimize this! */
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