Audio: Remove unused float helper code

Let's us get rid of 'alext.h' include,
which doesn't exist on OSX.
This commit is contained in:
Jonas Kulla 2014-05-24 18:26:04 +02:00
parent ce0fee0641
commit 0ef68a2eb7
2 changed files with 0 additions and 12 deletions

View File

@ -23,8 +23,6 @@
#define ALUTIL_H #define ALUTIL_H
#include <al.h> #include <al.h>
#include <alc.h>
#include <alext.h>
namespace AL namespace AL
{ {

View File

@ -65,9 +65,6 @@ static uint8_t formatSampleSize(int sdlFormat)
case AUDIO_S16MSB : case AUDIO_S16MSB :
return 2; return 2;
case AUDIO_F32 :
return 4;
default: default:
Debug() << "Unhandled sample format"; Debug() << "Unhandled sample format";
abort(); abort();
@ -94,13 +91,6 @@ static ALenum chooseALFormat(int sampleSize, int channelCount)
case 2 : return AL_FORMAT_STEREO16; case 2 : return AL_FORMAT_STEREO16;
default : abort(); default : abort();
} }
case 4 :
switch (channelCount)
{
case 1 : return AL_FORMAT_MONO_FLOAT32;
case 2 : return AL_FORMAT_STEREO_FLOAT32;
default : abort();
}
default : abort(); default : abort();
} }