From 79dfd14bea11a22888b03fa30b7978e219846dc3 Mon Sep 17 00:00:00 2001 From: marauder2k7 Date: Sat, 25 May 2024 10:20:14 +0100 Subject: [PATCH] Update sfxALBuffer.h revert to head --- Engine/source/sfx/openal/sfxALBuffer.h | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/Engine/source/sfx/openal/sfxALBuffer.h b/Engine/source/sfx/openal/sfxALBuffer.h index d3260d704..26864a3d0 100644 --- a/Engine/source/sfx/openal/sfxALBuffer.h +++ b/Engine/source/sfx/openal/sfxALBuffer.h @@ -84,26 +84,14 @@ class SFXALBuffer : public SFXBuffer return AL_FORMAT_STEREO8; else if( bps == 32 ) 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 ) { const U32 bps = format.getBitsPerSample(); - if (bps == 8) + if( bps == 8 ) return AL_FORMAT_MONO8; - else if (bps == 16) + else if( bps == 16 ) return AL_FORMAT_MONO16; - /* - else if (bps == 32) - { - if(alIsExtensionPresent("AL_EXT_FLOAT32")) - return AL_FORMAT_MONO_FLOAT32; - }*/ } return 0; } @@ -128,4 +116,4 @@ class SFXALBuffer : public SFXBuffer virtual ~SFXALBuffer(); }; -#endif // _SFXALBUFFER_H_ +#endif // _SFXALBUFFER_H_ \ No newline at end of file