diff options
author | Chris Robinson <[email protected]> | 2011-05-05 18:54:10 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-05-05 18:54:10 -0700 |
commit | 0e824914b2a60077c4730479f19b0c5da39e94c3 (patch) | |
tree | 59ce9a532e926150a72a8247a7ff0656310fd20b /OpenAL32 | |
parent | 7832a6d1d8fa6814b97d4486df2e3fe8e0d32171 (diff) |
Use signed samples for 8-bit storage
Diffstat (limited to 'OpenAL32')
-rw-r--r-- | OpenAL32/Include/alBuffer.h | 2 | ||||
-rw-r--r-- | OpenAL32/alBuffer.c | 16 |
2 files changed, 9 insertions, 9 deletions
diff --git a/OpenAL32/Include/alBuffer.h b/OpenAL32/Include/alBuffer.h index f6b8e47d..2cb025b7 100644 --- a/OpenAL32/Include/alBuffer.h +++ b/OpenAL32/Include/alBuffer.h @@ -45,7 +45,7 @@ static __inline ALuint FrameSizeFromUserFmt(enum UserFmtChannels chans, /* Storable formats */ enum FmtType { - FmtUByte = UserFmtUByte, + FmtByte = UserFmtByte, FmtShort = UserFmtShort, FmtFloat = UserFmtFloat, }; diff --git a/OpenAL32/alBuffer.c b/OpenAL32/alBuffer.c index 024bb31e..4801799e 100644 --- a/OpenAL32/alBuffer.c +++ b/OpenAL32/alBuffer.c @@ -2113,7 +2113,7 @@ ALuint BytesFromFmt(enum FmtType type) { switch(type) { - case FmtUByte: return sizeof(ALubyte); + case FmtByte: return sizeof(ALbyte); case FmtShort: return sizeof(ALshort); case FmtFloat: return sizeof(ALfloat); } @@ -2139,7 +2139,7 @@ ALboolean DecomposeFormat(ALenum format, enum FmtChannels *chans, enum FmtType * { case AL_MONO8: *chans = FmtMono; - *type = FmtUByte; + *type = FmtByte; return AL_TRUE; case AL_MONO16: *chans = FmtMono; @@ -2151,7 +2151,7 @@ ALboolean DecomposeFormat(ALenum format, enum FmtChannels *chans, enum FmtType * return AL_TRUE; case AL_STEREO8: *chans = FmtStereo; - *type = FmtUByte; + *type = FmtByte; return AL_TRUE; case AL_STEREO16: *chans = FmtStereo; @@ -2164,7 +2164,7 @@ ALboolean DecomposeFormat(ALenum format, enum FmtChannels *chans, enum FmtType * case AL_FORMAT_QUAD8_LOKI: case AL_QUAD8: *chans = FmtQuad; - *type = FmtUByte; + *type = FmtByte; return AL_TRUE; case AL_FORMAT_QUAD16_LOKI: case AL_QUAD16: @@ -2177,7 +2177,7 @@ ALboolean DecomposeFormat(ALenum format, enum FmtChannels *chans, enum FmtType * return AL_TRUE; case AL_REAR8: *chans = FmtRear; - *type = FmtUByte; + *type = FmtByte; return AL_TRUE; case AL_REAR16: *chans = FmtRear; @@ -2189,7 +2189,7 @@ ALboolean DecomposeFormat(ALenum format, enum FmtChannels *chans, enum FmtType * return AL_TRUE; case AL_5POINT1_8: *chans = FmtX51; - *type = FmtUByte; + *type = FmtByte; return AL_TRUE; case AL_5POINT1_16: *chans = FmtX51; @@ -2201,7 +2201,7 @@ ALboolean DecomposeFormat(ALenum format, enum FmtChannels *chans, enum FmtType * return AL_TRUE; case AL_6POINT1_8: *chans = FmtX61; - *type = FmtUByte; + *type = FmtByte; return AL_TRUE; case AL_6POINT1_16: *chans = FmtX61; @@ -2213,7 +2213,7 @@ ALboolean DecomposeFormat(ALenum format, enum FmtChannels *chans, enum FmtType * return AL_TRUE; case AL_7POINT1_8: *chans = FmtX71; - *type = FmtUByte; + *type = FmtByte; return AL_TRUE; case AL_7POINT1_16: *chans = FmtX71; |