diff options
author | Chris Robinson <[email protected]> | 2010-11-27 22:06:51 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2010-11-27 22:06:51 -0800 |
commit | 67ec72284da40b7e4a53022524ba41aa0aa5c976 (patch) | |
tree | fddd34276836db184e364d980271bd8fce912ee7 | |
parent | 754a122aa0d4cba3e9fec8d993f2d8b354f50491 (diff) |
Remove some unneeded muLaw special cases
-rw-r--r-- | OpenAL32/alSource.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c index b0474a01..75eaa8f1 100644 --- a/OpenAL32/alSource.c +++ b/OpenAL32/alSource.c @@ -1887,16 +1887,6 @@ static ALvoid GetSourceOffset(ALsource *Source, ALenum name, ALdouble *offset, A FrameBlockSize * BlockSize); } } - else if(OriginalFormat == AL_FORMAT_MONO_MULAW || - OriginalFormat == AL_FORMAT_STEREO_MULAW || - OriginalFormat == AL_FORMAT_QUAD_MULAW || - OriginalFormat == AL_FORMAT_51CHN_MULAW || - OriginalFormat == AL_FORMAT_61CHN_MULAW || - OriginalFormat == AL_FORMAT_71CHN_MULAW) - { - offset[0] = (ALdouble)(readPos / Bytes * 1); - offset[1] = (ALdouble)(writePos / Bytes * 1); - } else if(OriginalFormat == AL_FORMAT_REAR_MULAW) { offset[0] = (ALdouble)(readPos / 2 / Bytes * 1); @@ -2060,13 +2050,6 @@ static ALint FramesFromBytes(ALint offset, ALenum format, ALint channels) // Multiply by compression rate (65 sample frames per block) offset *= 65; } - else if(format==AL_FORMAT_MONO_MULAW || format==AL_FORMAT_STEREO_MULAW || - format==AL_FORMAT_QUAD_MULAW || format==AL_FORMAT_51CHN_MULAW || - format==AL_FORMAT_61CHN_MULAW || format==AL_FORMAT_71CHN_MULAW) - { - /* muLaw has 1 byte per sample */ - offset /= 1 * channels; - } else if(format == AL_FORMAT_REAR_MULAW) { /* Rear is 2 channels */ |