VirtualBox

Changeset 99312 in vbox for trunk/src/VBox/Devices/Audio


Ignore:
Timestamp:
Apr 6, 2023 7:20:21 AM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
156702
Message:

Audio/AC97: Acquire the mixer sink locks in ichac97R3StreamReSetUp(). bugref:10350

Location:
trunk/src/VBox/Devices/Audio
Files:
2 edited

Legend:

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

    r98456 r99312  
    21952195
    21962196/**
     2197 * Checks the caller is the owner of the mixer sink's critical section.
     2198 *
     2199 * @returns \c true if the caller is the lock owner, \c false if not.
     2200 * @param   pSink       The mixer sink to check.
     2201 */
     2202bool AudioMixerSinkLockIsOwned(PAUDMIXSINK pSink)
     2203{
     2204    return RTCritSectIsOwner(&pSink->CritSect);
     2205}
     2206
     2207
     2208/**
    21972209 * Locks the mixer sink for purposes of serializing with the AIO thread.
    21982210 *
     
    22282240 * @param   pSink       The mixer sink to unlock.
    22292241 */
    2230 int     AudioMixerSinkUnlock(PAUDMIXSINK pSink)
     2242int AudioMixerSinkUnlock(PAUDMIXSINK pSink)
    22312243{
    22322244    AssertPtrReturn(pSink, VERR_INVALID_POINTER);
  • trunk/src/VBox/Devices/Audio/AudioMixer.h

    r98456 r99312  
    328328uint64_t    AudioMixerSinkTransferToCircBuf(PAUDMIXSINK pSink, PRTCIRCBUF pCircBuf, uint64_t offStream,
    329329                                            uint32_t idStream, PAUDIOHLPFILE pDbgFile);
     330bool        AudioMixerSinkLockIsOwned(PAUDMIXSINK pSink);
    330331int         AudioMixerSinkLock(PAUDMIXSINK pSink);
    331332int         AudioMixerSinkTryLock(PAUDMIXSINK pSink);
Note: See TracChangeset for help on using the changeset viewer.

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