diff options
author | Chris Robinson <[email protected]> | 2018-01-21 18:15:25 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-01-21 18:16:27 -0800 |
commit | efd11f32a20c8fa06161a42facc5b97180c0c1a5 (patch) | |
tree | 135d2d11a61ed7db8897448c7d0e2bad8842a716 /OpenAL32/alBuffer.c | |
parent | 6489fb586b7f7776ade4adb48910599fc8528802 (diff) |
Remove support for (signed) byte and ushort sample storage
Also not used without buffer_samples
Diffstat (limited to 'OpenAL32/alBuffer.c')
-rw-r--r-- | OpenAL32/alBuffer.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/OpenAL32/alBuffer.c b/OpenAL32/alBuffer.c index 37266570..e0f2160d 100644 --- a/OpenAL32/alBuffer.c +++ b/OpenAL32/alBuffer.c @@ -144,7 +144,7 @@ AL_API ALboolean AL_APIENTRY alIsBuffer(ALuint buffer) AL_API ALvoid AL_APIENTRY alBufferData(ALuint buffer, ALenum format, const ALvoid *data, ALsizei size, ALsizei freq) { enum UserFmtChannels srcchannels = UserFmtMono; - enum UserFmtType srctype = UserFmtByte; + enum UserFmtType srctype = UserFmtUByte; ALCdevice *device; ALCcontext *context; ALbuffer *albuf; @@ -170,10 +170,8 @@ AL_API ALvoid AL_APIENTRY alBufferData(ALuint buffer, ALenum format, const ALvoi switch(srctype) { - case UserFmtByte: case UserFmtUByte: case UserFmtShort: - case UserFmtUShort: case UserFmtFloat: case UserFmtMulaw: case UserFmtAlaw: @@ -339,7 +337,7 @@ done: AL_API ALvoid AL_APIENTRY alBufferSubDataSOFT(ALuint buffer, ALenum format, const ALvoid *data, ALsizei offset, ALsizei length) { enum UserFmtChannels srcchannels = UserFmtMono; - enum UserFmtType srctype = UserFmtByte; + enum UserFmtType srctype = UserFmtUByte; ALCdevice *device; ALCcontext *context; ALbuffer *albuf; @@ -1030,10 +1028,8 @@ ALsizei BytesFromUserFmt(enum UserFmtType type) { switch(type) { - case UserFmtByte: return sizeof(ALbyte); case UserFmtUByte: return sizeof(ALubyte); case UserFmtShort: return sizeof(ALshort); - case UserFmtUShort: return sizeof(ALushort); case UserFmtFloat: return sizeof(ALfloat); case UserFmtDouble: return sizeof(ALdouble); case UserFmtMulaw: return sizeof(ALubyte); |