Add retrieval of missing source properties

This commit is contained in:
Chris Robinson 2012-10-21 11:36:27 -07:00
parent 8a67e5cfa2
commit fae4959db3

View File

@ -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: