[Openal] Any floating point extensions?

E. Wing ewmailing at gmail.com
Fri Jan 2 15:02:13 PST 2009


On 1/2/09, Bob Aron <baron at apple.com> wrote:
> These should be supported in the OSX implementation. Is the extension
> not being presented? or is the format being rejected?
>
> -bob aron

Hi Bob,

The OS X implementation does actually support the floating formats. (I
sent you a direct question about two weeks ago.) The problem is that
the following #defines are not in the header files:

>>> #define AL_FORMAT_MONO_FLOAT32                   0x10010
>>> #define AL_FORMAT_STEREO_FLOAT32                 0x10011

If I define these myself and use them, everything seems to work fine.
I'm passing everything directly into Accelerate framework's vecLib
functions and things seem to work great.

And if I test for the extension as Chris said, (e.g.
if(alIsExtensionPresent("AL_EXT_float32") == AL_TRUE))), the OS X
implementation does return true.

So the mystery has been why these defines have been removed from the
public headers. I recall seeing them in the 1.0 implementation on
Tiger. So they were removed sometime after. I don't have any real
problem with defining these constants myself, but I was worried there
was a more worrisome reason these were removed.

Thanks,
Eric


More information about the Openal mailing list