aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include/alSource.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-05-10 05:07:13 -0700
committerChris Robinson <[email protected]>2014-05-10 05:07:13 -0700
commita45570414847a359fab317e2ff4929c41a4af431 (patch)
tree9473e57c11708107ac5aafd3adbfd284d1f95d91 /OpenAL32/Include/alSource.h
parenteebde08e65ea8f2c3200308d8db1e031a0d80273 (diff)
Use a RWLock to help protect the source's buffer queue
In some instances this allows to to remove the device/mixer lock, or reduce how long it's held.
Diffstat (limited to 'OpenAL32/Include/alSource.h')
-rw-r--r--OpenAL32/Include/alSource.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/OpenAL32/Include/alSource.h b/OpenAL32/Include/alSource.h
index d49120b8..85a7a838 100644
--- a/OpenAL32/Include/alSource.h
+++ b/OpenAL32/Include/alSource.h
@@ -98,6 +98,7 @@ typedef struct ALsource {
/** Source Buffer Queue info. */
ALbufferlistitem *queue;
ALbufferlistitem *current_buffer;
+ RWLock queue_lock;
/** Current buffer sample info. */
ALuint NumChannels;