mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 15:44:36 +00:00
Update sfxALBuffer.h
revert to head
This commit is contained in:
parent
0d1dc234fa
commit
79dfd14bea
1 changed files with 3 additions and 15 deletions
|
|
@ -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_
|
||||||
Loading…
Add table
Add a link
Reference in a new issue