diff options
author | Chris Robinson <[email protected]> | 2012-10-21 11:36:27 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-10-21 11:36:27 -0700 |
commit | fae4959db3228abceb110b842ceac30dce1e8de8 (patch) | |
tree | 3567a1a5a8582284ec09549e05af3ed6ae98c464 /OpenAL32 | |
parent | 8a67e5cfa2bc41b13e753e1927d1e881d26ea885 (diff) |
Add retrieval of missing source properties
Diffstat (limited to 'OpenAL32')
-rw-r--r-- | OpenAL32/alSource.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c index 9f5bd8bc..2e8a952b 100644 --- a/OpenAL32/alSource.c +++ b/OpenAL32/alSource.c @@ -557,6 +557,10 @@ static ALenum GetSourcedv(const ALsource *Source, ALCcontext *Context, ALenum na switch(name) { + case AL_PITCH: + *values = Source->Pitch; + break; + case AL_MAX_DISTANCE: *values = Source->MaxDistance; break; @@ -577,6 +581,18 @@ static ALenum GetSourcedv(const ALsource *Source, ALCcontext *Context, ALenum na *values = Source->OuterAngle; break; + case AL_MIN_GAIN: + *values = Source->MinGain; + break; + + case AL_MAX_GAIN: + *values = Source->MaxGain; + break; + + case AL_CONE_OUTER_GAIN: + *values = Source->OuterGain; + break; + case AL_SEC_OFFSET: case AL_SAMPLE_OFFSET: case AL_BYTE_OFFSET: |