From 67ec72284da40b7e4a53022524ba41aa0aa5c976 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 27 Nov 2010 22:06:51 -0800 Subject: Remove some unneeded muLaw special cases --- OpenAL32/alSource.c | 17 ----------------- 1 file changed, 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 */ -- cgit v1.2.3