LWJGL Forum

Programming => OpenAL => Topic started by: Ciardhubh on July 29, 2009, 10:21:10

Title: AL11.alSpeedOfSound() throws UnsatisfiedLinkError
Post by: Ciardhubh on July 29, 2009, 10:21:10
I tried to use AL11.alSpeedOfSound() but it throws an unsatisfied link error on Linux (Ubuntu 9.04) and Windows XP SP3, both 32 bit. On Windows I also get a message dialog saying that the app tried to read some memory address and failed. LWJGL version is 2.1.0.
       
alSpeedOfSound is a new function in OpenAL 1.1. It's inteded to replace alDopplerVerlocity.

Test code:
import org.lwjgl.LWJGLException;
import org.lwjgl.openal.AL;
import org.lwjgl.openal.AL10;
import org.lwjgl.openal.AL11;

public class SpeedOfSoundSet {

   public static void main(final String[] args) throws LWJGLException {
       if (!AL.isCreated()) {
           AL.create();
       }
 
       AL10.alDopplerVelocity(100f); // Works
       AL11.alSpeedOfSound(343.3f); // Throws UnsatisfiedLinkError
   }
}


Eception:
Exception in thread "main" java.lang.UnsatisfiedLinkError: org.lwjgl.openal.AL11.nalSpeedOfSound(F)V
       at org.lwjgl.openal.AL11.nalSpeedOfSound(Native Method)
       at org.lwjgl.openal.AL11.alSpeedOfSound(AL11.java:281)
       at de.ciardhubh.lwjgltest.openal.SpeedOfSoundSet.main(SpeedOfSoundSet.java:14)


Which version of OpenAL does LWJGL support? 1.0 or 1.1? There's the class AL11 so I assume 1.1 is supported. Then again, there is this wiki page that say only 1.0 is supported: http://lwjgl.org/wiki/doku.php/lwjgl/tutorials/openal/index . If it's 1.1, the Javadoc of alDopplerFactor/Velocity is probably also outdate as it mentions the old 1.0 doppler funtions.
Title: Re: AL11.alSpeedOfSound() throws UnsatisfiedLinkError
Post by: Matzon on July 29, 2009, 14:55:19
it should work - and I get the error too - not sure whats going on tho ...
Title: Re: AL11.alSpeedOfSound() throws UnsatisfiedLinkError
Post by: Ciardhubh on August 05, 2009, 11:07:02
Same issue with LWJGL 2.2.0 (latest from http://www.newdawnsoftware.com/hudson/view/LWJGL/ at time of posting) by the way.
Title: Re: AL11.alSpeedOfSound() throws UnsatisfiedLinkError
Post by: Matzon on August 05, 2009, 18:57:05
should be fixed in latest nightly - obvious error. only ALC11 functions were loaded - not the AL11 functions :facepalm:
Title: Re: AL11.alSpeedOfSound() throws UnsatisfiedLinkError
Post by: Ciardhubh on August 30, 2009, 18:46:17
Works fine, thanks. By the way, is it even sensible to report bugs found in http://www.newdawnsoftware.com/hudson/view/LWJGL/ here (like Display.create() not working lately :D )? I assume that's the development repository. So are bugs usually known and mentioning them here would just be redundant?
Title: Re: AL11.alSpeedOfSound() throws UnsatisfiedLinkError
Post by: Matzon on August 30, 2009, 21:03:53
do report them here preferably with a testcase (and a patch ;))