summaryrefslogtreecommitdiffstats
path: root/OpenAL32/alSource.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-11-01 00:16:44 -0700
committerChris Robinson <[email protected]>2012-11-01 00:16:44 -0700
commiteb6360e1f87c51c95ddda5a21646e02c3c6561e5 (patch)
tree5ef8841417d613773d3cc1c03de75959dfb9b21b /OpenAL32/alSource.c
parent41b1ba146a3742f70f9a0a6b7de3e5811d95d16c (diff)
Set the proper error when trying to set AL_SAMPLE_OFFSET_LATENCY_SOFT or AL_SEC_OFFSET_LATENCY_SOFT
Diffstat (limited to 'OpenAL32/alSource.c')
-rw-r--r--OpenAL32/alSource.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c
index 8cbb23e8..63b02141 100644
--- a/OpenAL32/alSource.c
+++ b/OpenAL32/alSource.c
@@ -229,7 +229,6 @@ static ALenum SetSourcefv(ALsource *Source, ALCcontext *Context, ALenum name, co
Source->NeedsUpdate = AL_TRUE;
break;
-
default:
RETERR(AL_INVALID_ENUM);
}
@@ -1237,6 +1236,10 @@ 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);
}
@@ -1473,6 +1476,10 @@ 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);
}