mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-15 08:52:04 +00:00
Support float stream callbacks with AL_EXT_FLOAT32
This commit is contained in:
parent
69af01d629
commit
ba3cc38d09
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue