aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alSource.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-12-05 08:27:02 -0800
committerChris Robinson <[email protected]>2012-12-05 08:27:02 -0800
commit838f0fd71bb448781764510e350bb79732b71d54 (patch)
tree800ba0b46da8bc369854682fb5794899be572a12 /OpenAL32/alSource.c
parentfd83e006ecb736c348764d0be99e8af6b2d2b9c6 (diff)
Fix retrieving source gain
Diffstat (limited to 'OpenAL32/alSource.c')
-rw-r--r--OpenAL32/alSource.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c
index dace22d6..fe7aa6f3 100644
--- a/OpenAL32/alSource.c
+++ b/OpenAL32/alSource.c
@@ -566,6 +566,10 @@ static ALenum GetSourcedv(const ALsource *Source, ALCcontext *Context, ALenum na
switch(name)
{
+ case AL_GAIN:
+ *values = Source->Gain;
+ break;
+
case AL_PITCH:
*values = Source->Pitch;
break;