[Openal] Get source offset returns AL_INVALID_ENUM

Garin Hiebert garinh at cheesetoast.net
Mon Oct 9 08:00:27 PDT 2006


>
> So, how can I force OpenAL to use e.g. the DirectSound wrapper 
> wrap_oal.dll, without deleting / renaming the native driver? I tried 
> copying OpenAL32.dll and wrap_oal.dll to the same directory as my 
> application, but this did not help - the native driver in system32 is 
> still detected and used.
You can open the "Generic Hardware" device by name, which will always 
work (or auto-magically fall back to the "Generic Software" device).  
It's a little bit of a crude solution in that you won't be able to take 
advantage of "native" libraries, though, so...

You'll probably want to filter-out non-1.1-compliant devices by using 
enumeration, which you can also use to provide your users with the 
option of selecting alternate devices with your app.   What you'll do is 
ask for a complete list of devices, ask each one if it is 1.1-compliant, 
and then only use a device if it passes the test.  There is code 
included with the OpenAL SDK (an ALDeviceList class) which can enumerate 
and then do the filtering for you, or you can just use it as a reference 
and "roll your own."  Windows SDK URL below:

http://developer.creative.com/articles/article.asp?cat=1&sbcat=31&top=38&aid=45

Garin



More information about the Openal mailing list