aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alFontsound.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2013-12-27 01:08:48 -0800
committerChris Robinson <[email protected]>2013-12-27 01:08:48 -0800
commit2b772a5607c2147d68eb8e45b04b2f381ec6c0ad (patch)
treef48112dfc4910c36d63e3c78834448cdc3bc04e4 /OpenAL32/alFontsound.c
parent307ac564ca68abf8a3a24b2d0f7c1e2efb13a4be (diff)
Allow specifying all 4 sample types
ROM-based types will be specified with a separate property
Diffstat (limited to 'OpenAL32/alFontsound.c')
-rw-r--r--OpenAL32/alFontsound.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenAL32/alFontsound.c b/OpenAL32/alFontsound.c
index 85ca25d6..663b1290 100644
--- a/OpenAL32/alFontsound.c
+++ b/OpenAL32/alFontsound.c
@@ -165,7 +165,7 @@ AL_API void AL_APIENTRY alFontsoundiSOFT(ALuint id, ALenum param, ALint value)
break;
case AL_SAMPLE_TYPE_SOFT:
- if(!(value == 1))
+ if(!(value >= 1 && value <= 4))
SET_ERROR_AND_GOTO(context, AL_INVALID_VALUE, done);
sound->SampleType = value;
break;