Game Development Community

OpenAL32.dll _very_ dated - has bugs - how to use different one

by Mark Kinkead · in Torque Game Builder · 09/21/2005 (1:05 pm) · 1 replies

I had noticed an odd bug with a particular wave file (which was about 20 seconds long)where it sounded great the first time it played, but it would skip a bit about 5 seconds into it the second and subsequent times it was played.

I also noticed that this only happened on Windows. Linux did not show the oddity.

I looked into it today and isolated the problem to "alSourcePlay", which is the library call to the OpenAL32.dll

Upon further inspection of this DLL, I found I actually had 2 versions of this DLL on my box.

One was the one that came with the Torque2D distribution, and its version number was 0.9.9.1

The other was in windows/System32 directory on XP , version 5.12.1.242.

When I set things up to guarantee use of the later one on my box, the error went away.

I also note this resource

www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=5113

Which gives excellent advice on how to guarantee initial use of the user's library, if he has one.


--Mark

#1
10/21/2005 (6:55 pm)
Interesting.. I just read this

Quote:Updated October 19, 2005 -- Version 1.8.0
Version note -- Installs OpenAL32.dll version 6.14.357.11 and wrap_oal.dll version 2.0.0.0.

Changes and Bugfixes --

The wrapper has been updated to support OpenAL 1.1 functionality.

The router has been updated to fix a bug where instability or a crash could result from installing a native Creative OpenAL library and then removing the device without removing the driver.



Edit: Well it does not work with the new DLL. So I restored the old one.

Hum...