mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-24 22:05:40 +00:00
Update sfxALBuffer.h
mac dont like
This commit is contained in:
parent
16ff27c6e6
commit
e3d977b8e7
1 changed files with 4 additions and 2 deletions
|
|
@ -84,11 +84,12 @@ 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 )
|
||||
{
|
||||
|
|
@ -97,11 +98,12 @@ class SFXALBuffer : public SFXBuffer
|
|||
return AL_FORMAT_MONO8;
|
||||
else if (bps == 16)
|
||||
return AL_FORMAT_MONO16;
|
||||
/*
|
||||
else if (bps == 32)
|
||||
{
|
||||
if(alIsExtensionPresent("AL_EXT_FLOAT32"))
|
||||
return AL_FORMAT_MONO_FLOAT32;
|
||||
}
|
||||
}*/
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue