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:
parent
ce0fee0641
commit
0ef68a2eb7
|
@ -23,8 +23,6 @@
|
|||
#define ALUTIL_H
|
||||
|
||||
#include <al.h>
|
||||
#include <alc.h>
|
||||
#include <alext.h>
|
||||
|
||||
namespace AL
|
||||
{
|
||||
|
|
|
@ -65,9 +65,6 @@ static uint8_t formatSampleSize(int sdlFormat)
|
|||
case AUDIO_S16MSB :
|
||||
return 2;
|
||||
|
||||
case AUDIO_F32 :
|
||||
return 4;
|
||||
|
||||
default:
|
||||
Debug() << "Unhandled sample format";
|
||||
abort();
|
||||
|
@ -94,13 +91,6 @@ static ALenum chooseALFormat(int sampleSize, int channelCount)
|
|||
case 2 : return AL_FORMAT_STEREO16;
|
||||
default : abort();
|
||||
}
|
||||
case 4 :
|
||||
switch (channelCount)
|
||||
{
|
||||
case 1 : return AL_FORMAT_MONO_FLOAT32;
|
||||
case 2 : return AL_FORMAT_STEREO_FLOAT32;
|
||||
default : abort();
|
||||
}
|
||||
default : abort();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue