mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-12-13 13:50:59 +00:00
Remove an unused function
This commit is contained in:
parent
4f6861d798
commit
0f234fb36d
1 changed files with 0 additions and 33 deletions
|
@ -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<typename T>
|
template<typename T>
|
||||||
static void LoadALFunc(const char *name, T *x)
|
static void LoadALFunc(const char *name, T *x)
|
||||||
{ *x = reinterpret_cast<T>(alGetProcAddress(name)); }
|
{ *x = reinterpret_cast<T>(alGetProcAddress(name)); }
|
||||||
|
|
Loading…
Reference in a new issue