aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alSource.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-11-01 18:35:20 -0700
committerChris Robinson <[email protected]>2012-11-01 18:35:20 -0700
commit97bf718d0ed29cd4fd219ad3bae6e1ad12d321e0 (patch)
treef99d9d4139488c0317512368f61a5a881342b1ce /OpenAL32/alSource.c
parenteb6360e1f87c51c95ddda5a21646e02c3c6561e5 (diff)
Pass the offset latency properties to the set handler
Diffstat (limited to 'OpenAL32/alSource.c')
-rw-r--r--OpenAL32/alSource.c26
1 files changed, 18 insertions, 8 deletions
diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c
index 63b02141..3ba4387f 100644
--- a/OpenAL32/alSource.c
+++ b/OpenAL32/alSource.c
@@ -196,6 +196,11 @@ static ALenum SetSourcefv(ALsource *Source, ALCcontext *Context, ALenum name, co
break;
+ case AL_SEC_OFFSET_LATENCY_SOFT:
+ /* Query only */
+ RETERR(AL_INVALID_OPERATION);
+
+
case AL_POSITION:
CHECKVAL(isfinite(values[0]) && isfinite(values[1]) && isfinite(values[2]));
@@ -473,6 +478,11 @@ static ALenum SetSourcei64v(ALsource *Source, ALCcontext *Context, ALenum name,
switch(name)
{
+ case AL_SAMPLE_OFFSET_LATENCY_SOFT:
+ /* Query only */
+ RETERR(AL_INVALID_OPERATION);
+
+
/* 1x int */
case AL_SOURCE_RELATIVE:
case AL_LOOPING:
@@ -1227,6 +1237,12 @@ AL_API ALvoid AL_APIENTRY alSourcedvSOFT(ALuint source, ALenum param, const ALdo
SetSourcefv(Source, Context, param, fvals);
break;
+ case AL_SEC_OFFSET_LATENCY_SOFT:
+ fvals[0] = (ALfloat)values[0];
+ fvals[1] = (ALfloat)values[1];
+ SetSourcefv(Source, Context, param, fvals);
+ break;
+
case AL_POSITION:
case AL_VELOCITY:
case AL_DIRECTION:
@@ -1236,10 +1252,6 @@ AL_API ALvoid AL_APIENTRY alSourcedvSOFT(ALuint source, ALenum param, const ALdo
SetSourcefv(Source, Context, param, fvals);
break;
- case AL_SEC_OFFSET_LATENCY_SOFT:
- alSetError(Context, AL_INVALID_OPERATION);
- break;
-
default:
alSetError(Context, AL_INVALID_ENUM);
}
@@ -1469,6 +1481,8 @@ AL_API void AL_APIENTRY alSourcei64vSOFT(ALuint source, ALenum param, const ALin
case AL_BUFFER:
case AL_DIRECT_FILTER:
+ case AL_SAMPLE_OFFSET_LATENCY_SOFT:
+
case AL_POSITION:
case AL_VELOCITY:
case AL_DIRECTION:
@@ -1476,10 +1490,6 @@ AL_API void AL_APIENTRY alSourcei64vSOFT(ALuint source, ALenum param, const ALin
SetSourcei64v(Source, Context, param, values);
break;
- case AL_SAMPLE_OFFSET_LATENCY_SOFT:
- alSetError(Context, AL_INVALID_OPERATION);
- break;
-
default:
alSetError(Context, AL_INVALID_ENUM);
}