aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-11-29 22:07:07 -0800
committerChris Robinson <[email protected]>2010-11-29 22:07:07 -0800
commit07a7c03adb36924be652cc807a8cfcd63f9f528e (patch)
tree7c1ab8bf935be03143ed09fdd29f0abfd837d670 /OpenAL32
parente800f8c0a72ee2681d3660ce1b1a67a48e9d77da (diff)
Check for a couple missing input formats and remove an unneeded default case
Diffstat (limited to 'OpenAL32')
-rw-r--r--OpenAL32/alBuffer.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/OpenAL32/alBuffer.c b/OpenAL32/alBuffer.c
index 50d7369f..0c97845e 100644
--- a/OpenAL32/alBuffer.c
+++ b/OpenAL32/alBuffer.c
@@ -290,6 +290,8 @@ AL_API ALvoid AL_APIENTRY alBufferData(ALuint buffer,ALenum format,const ALvoid
case SrcFmtUByte:
case SrcFmtShort:
case SrcFmtUShort:
+ case SrcFmtInt:
+ case SrcFmtUInt:
case SrcFmtFloat:
err = LoadData(ALBuf, freq, format, size, SrcChannels, SrcType, data);
if(err != AL_NO_ERROR)
@@ -371,10 +373,6 @@ AL_API ALvoid AL_APIENTRY alBufferData(ALuint buffer,ALenum format,const ALvoid
else
alSetError(Context, AL_OUT_OF_MEMORY);
} break;
-
- default:
- alSetError(Context, AL_INVALID_ENUM);
- break;
}
ProcessContext(Context);