mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
Update sfxALBuffer.h
revert to head
This commit is contained in:
parent
0d1dc234fa
commit
79dfd14bea
|
|
@ -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_
|
||||
Loading…
Reference in a new issue