From ba3cc38d095e0e7d6191f9a0e4a825509db1ac09 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 30 Jun 2013 08:04:08 -0700 Subject: [PATCH] Support float stream callbacks with AL_EXT_FLOAT32 --- src/sound/oalsound.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/sound/oalsound.cpp b/src/sound/oalsound.cpp index afcfe9727..b6ac21b1d 100644 --- a/src/sound/oalsound.cpp +++ b/src/sound/oalsound.cpp @@ -420,6 +420,11 @@ public: if((flags&Mono)) Format = AL_FORMAT_MONO16; 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) {