Update sfxALBuffer.h

revert to head
This commit is contained in:
marauder2k7 2024-05-25 10:20:14 +01:00
parent 0d1dc234fa
commit 79dfd14bea

View file

@ -84,26 +84,14 @@ class SFXALBuffer : public SFXBuffer
return AL_FORMAT_STEREO8; return AL_FORMAT_STEREO8;
else if( bps == 32 ) else if( bps == 32 )
return AL_FORMAT_STEREO16; return AL_FORMAT_STEREO16;
/* MAC doesnt like 32bit openal (doesnt use the ext)
else if (bps == 64)
{
if (alIsExtensionPresent("AL_EXT_FLOAT32"))
return AL_FORMAT_STEREO_FLOAT32;
}*/
} }
else if( format.getChannels() == 1 ) else if( format.getChannels() == 1 )
{ {
const U32 bps = format.getBitsPerSample(); const U32 bps = format.getBitsPerSample();
if (bps == 8) if( bps == 8 )
return AL_FORMAT_MONO8; return AL_FORMAT_MONO8;
else if (bps == 16) else if( bps == 16 )
return AL_FORMAT_MONO16; return AL_FORMAT_MONO16;
/*
else if (bps == 32)
{
if(alIsExtensionPresent("AL_EXT_FLOAT32"))
return AL_FORMAT_MONO_FLOAT32;
}*/
} }
return 0; return 0;
} }
@ -128,4 +116,4 @@ class SFXALBuffer : public SFXBuffer
virtual ~SFXALBuffer(); virtual ~SFXALBuffer();
}; };
#endif // _SFXALBUFFER_H_ #endif // _SFXALBUFFER_H_