VirtualBox

Changeset 98406 in vbox


Ignore:
Timestamp:
Feb 1, 2023 3:19:32 PM (2 years ago)
Author:
vboxsync
Message:

Audio: Fixed race condition between announcing remaining device DMA data on draining and fetching it in the async I/O mixer thread via AudioMixerSinkTransferFromCircBuf(). This is due to the device's DMA buffer being reset via its device-specific functions (i.e. ichac97R3StreamReset()) immediately after disabling the stream (i.e. ichac97R3StreamDisable()). See comment 2 for more details [Doxygen fix]. bugref:10354

File:
1 edited

Legend:

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

    r98405 r98406  
    20532053 * @returns VBox status code.
    20542054 * @param   pSink       The mixer sink which AIO thread needs waiting on.
    2055  * @þaram   msTimeout   Timeout (in ms) to use for waiting on draining to be finished.
     2055 * @param   msTimeout   Timeout (in ms) to use for waiting on draining to be finished.
    20562056 *
    20572057 * @note    Caller holds the sink's lock.
     
    20862086 * @returns VBox status code.
    20872087 * @param   pSink       The mixer sink which AIO thread needs waiting on.
    2088  * @þaram   msTimeout   Timeout (in ms) to use for waiting on draining to be finished.
     2088 * @param   msTimeout   Timeout (in ms) to use for waiting on draining to be finished.
    20892089 */
    20902090int AudioMixerSinkWaitForDrained(PAUDMIXSINK pSink, RTMSINTERVAL msTimeout)
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