From 0f234fb36dc29af4e37111f990901c6a0870c49f Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 19 Jun 2014 23:10:36 -0700 Subject: [PATCH] Remove an unused function --- src/sound/oalsound.cpp | 33 --------------------------------- 1 file changed, 33 deletions(-) diff --git a/src/sound/oalsound.cpp b/src/sound/oalsound.cpp index 5383d34b1..f51796d7e 100644 --- a/src/sound/oalsound.cpp +++ b/src/sound/oalsound.cpp @@ -550,39 +550,6 @@ static float GetRolloff(const FRolloffInfo *rolloff, float distance) } -static ALenum FormatFromDesc(int bits, int channels) -{ - if(bits == 8) - { - if(channels == 1) return AL_FORMAT_MONO8; - if(channels == 2) return AL_FORMAT_STEREO8; - if(channels == 4) return AL_FORMAT_QUAD8; - if(channels == 6) return AL_FORMAT_51CHN8; - if(channels == 7) return AL_FORMAT_61CHN8; - if(channels == 8) return AL_FORMAT_71CHN8; - } - if(bits == 16) - { - if(channels == 1) return AL_FORMAT_MONO16; - if(channels == 2) return AL_FORMAT_STEREO16; - if(channels == 4) return AL_FORMAT_QUAD16; - if(channels == 6) return AL_FORMAT_51CHN16; - if(channels == 7) return AL_FORMAT_61CHN16; - if(channels == 8) return AL_FORMAT_71CHN16; - } - if(bits == 32) - { - if(channels == 1) return AL_FORMAT_MONO_FLOAT32; - if(channels == 2) return AL_FORMAT_STEREO_FLOAT32; - if(channels == 4) return AL_FORMAT_QUAD32; - if(channels == 6) return AL_FORMAT_51CHN32; - if(channels == 7) return AL_FORMAT_61CHN32; - if(channels == 8) return AL_FORMAT_71CHN32; - } - return AL_NONE; -} - - template static void LoadALFunc(const char *name, T *x) { *x = reinterpret_cast(alGetProcAddress(name)); }