aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-02-01 23:56:35 -0800
committerChris Robinson <[email protected]>2018-02-01 23:56:35 -0800
commit6a4a88f8f5c050b2a1e312984d072d806d7c387c (patch)
tree8d2b68be9d645486536b1acbf355b0bd484ec709 /OpenAL32/Include
parenta114d6cbb56470db87c2b0bd7c76ce26bdaeb63c (diff)
Store an index to a given source's voice
For more efficient voice lookups when needed.
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r--OpenAL32/Include/alSource.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenAL32/Include/alSource.h b/OpenAL32/Include/alSource.h
index b346e619..2892a245 100644
--- a/OpenAL32/Include/alSource.h
+++ b/OpenAL32/Include/alSource.h
@@ -100,6 +100,11 @@ typedef struct ALsource {
ATOMIC_FLAG PropsClean;
+ /* Index into the context's Voices array. Lazily updated, only checked and
+ * reset when looking up the voice.
+ */
+ ALint VoiceIdx;
+
/** Self ID */
ALuint id;
} ALsource;