On Tuesday 25 August 2009 6:40:30 am Stefan Dösinger wrote:
I'll give it a try with my games. The old thunk from a while ago already worked very will with those games.
OpenAL seems to have an extension system like opengl. If there is a function that returns an extension string we'll want to remove any extension our thunk doesn't know about. However, I can't find any such function, but I only did a very quick search
There are functions for both the extension string, and for checking individual extensions (eg. alcGetString(device, ALC_EXTENSIONS) / alGetString(AL_EXTENSIONS) return a GL-like list of extensions for ALC and AL respectively, and alcIsExtensionPresent(device, "foo") / alIsExtensionPresent("foo") says if extension 'foo' is supported).
However, I don't like the idea of white-listing extensions. IMO, it would be better to print a FIXME (as it currently does), and add any functions that get found. Often times it's just new enum tokens, and it would be silly to block them out because the thunk isn't aware of them.