diff options
author | Chris Robinson <[email protected]> | 2016-04-25 18:56:59 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2016-04-25 18:56:59 -0700 |
commit | 3556da0d022dca2a65ed7d1fe736855fac728c95 (patch) | |
tree | d9d91dd6e7cc50e1e82a555add1c9ad7c679f5dd /OpenAL32/alBuffer.c | |
parent | b9eacf46414ad5916a5c2c9a342d4d05d8628de4 (diff) |
Start AL_SOFT_buffer_samples2 as a replacement for AL_SOFT_buffer_samples
Diffstat (limited to 'OpenAL32/alBuffer.c')
-rw-r--r-- | OpenAL32/alBuffer.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/OpenAL32/alBuffer.c b/OpenAL32/alBuffer.c index 904fd61d..c5c9ea21 100644 --- a/OpenAL32/alBuffer.c +++ b/OpenAL32/alBuffer.c @@ -1201,13 +1201,13 @@ static ALboolean DecomposeFormat(ALenum format, enum FmtChannels *chans, enum Fm { AL_7POINT1_16_SOFT, FmtX71, FmtShort }, { AL_7POINT1_32F_SOFT, FmtX71, FmtFloat }, - { AL_FORMAT_BFORMAT2D_8, FmtBFormat2D, FmtByte }, - { AL_FORMAT_BFORMAT2D_16, FmtBFormat2D, FmtShort }, - { AL_FORMAT_BFORMAT2D_FLOAT32, FmtBFormat2D, FmtFloat }, + { AL_BFORMAT2D_8_SOFT, FmtBFormat2D, FmtByte }, + { AL_BFORMAT2D_16_SOFT, FmtBFormat2D, FmtShort }, + { AL_BFORMAT2D_32F_SOFT, FmtBFormat2D, FmtFloat }, - { AL_FORMAT_BFORMAT3D_8, FmtBFormat3D, FmtByte }, - { AL_FORMAT_BFORMAT3D_16, FmtBFormat3D, FmtShort }, - { AL_FORMAT_BFORMAT3D_FLOAT32, FmtBFormat3D, FmtFloat }, + { AL_BFORMAT3D_8_SOFT, FmtBFormat3D, FmtByte }, + { AL_BFORMAT3D_16_SOFT, FmtBFormat3D, FmtShort }, + { AL_BFORMAT3D_32F_SOFT, FmtBFormat3D, FmtFloat }, }; ALuint i; @@ -1277,6 +1277,7 @@ static ALboolean IsValidType(ALenum type) case AL_DOUBLE_SOFT: case AL_BYTE3_SOFT: case AL_UNSIGNED_BYTE3_SOFT: + case AL_MULAW_SOFT: return AL_TRUE; } return AL_FALSE; @@ -1293,6 +1294,8 @@ static ALboolean IsValidChannels(ALenum channels) case AL_5POINT1_SOFT: case AL_6POINT1_SOFT: case AL_7POINT1_SOFT: + case AL_BFORMAT2D_SOFT: + case AL_BFORMAT3D_SOFT: return AL_TRUE; } return AL_FALSE; |