OpenAL-Soft 1.6.372 and OgreAL [Patch Included]

Phobius

04-01-2009 00:46:32

If anyone wants to use the two togeather, you will find that an exception is thrown about being unable to locate a device. This is because the new OpenAL soft incorrectly sets the context error flag if alcOpenDevice() fails to succeed. If you want the two to work, apply this patch to the current revision's (r115 i think) OgreALSoundManager.cpp:

469a470,473
> }else{
> // There is a chance that because the device could not be
> // opened, the error flag was set, clear it.
> alcGetError(device);
687c691
<
---
>