- Timestamp:
- Apr 6, 2023 7:20:21 AM (18 months ago)
- Location:
- trunk/src/VBox/Devices/Audio
- Files:
-
- 2 edited
-
AudioMixer.cpp (modified) (2 diffs)
-
AudioMixer.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/AudioMixer.cpp
r98456 r99312 2195 2195 2196 2196 /** 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 */ 2202 bool AudioMixerSinkLockIsOwned(PAUDMIXSINK pSink) 2203 { 2204 return RTCritSectIsOwner(&pSink->CritSect); 2205 } 2206 2207 2208 /** 2197 2209 * Locks the mixer sink for purposes of serializing with the AIO thread. 2198 2210 * … … 2228 2240 * @param pSink The mixer sink to unlock. 2229 2241 */ 2230 int AudioMixerSinkUnlock(PAUDMIXSINK pSink)2242 int AudioMixerSinkUnlock(PAUDMIXSINK pSink) 2231 2243 { 2232 2244 AssertPtrReturn(pSink, VERR_INVALID_POINTER); -
trunk/src/VBox/Devices/Audio/AudioMixer.h
r98456 r99312 328 328 uint64_t AudioMixerSinkTransferToCircBuf(PAUDMIXSINK pSink, PRTCIRCBUF pCircBuf, uint64_t offStream, 329 329 uint32_t idStream, PAUDIOHLPFILE pDbgFile); 330 bool AudioMixerSinkLockIsOwned(PAUDMIXSINK pSink); 330 331 int AudioMixerSinkLock(PAUDMIXSINK pSink); 331 332 int AudioMixerSinkTryLock(PAUDMIXSINK pSink);
Note:
See TracChangeset
for help on using the changeset viewer.

