Support float stream callbacks with AL_EXT_FLOAT32

This commit is contained in:
Chris Robinson 2013-06-30 08:04:08 -07:00
parent 69af01d629
commit ba3cc38d09

View file

@ -420,6 +420,11 @@ public:
if((flags&Mono)) Format = AL_FORMAT_MONO16; if((flags&Mono)) Format = AL_FORMAT_MONO16;
else Format = AL_FORMAT_STEREO16; else Format = AL_FORMAT_STEREO16;
} }
else if((flags&Float) && alIsExtensionPresent("AL_EXT_FLOAT32"))
{
if((flags&Mono)) Format = AL_FORMAT_MONO_FLOAT32;
else Format = AL_FORMAT_STEREO_FLOAT32;
}
if(Format == AL_NONE) if(Format == AL_NONE)
{ {