Hello Guest

AL11.alSpeedOfSound() throws UnsatisfiedLinkError

  • 5 Replies
  • 14955 Views
AL11.alSpeedOfSound() throws UnsatisfiedLinkError
« 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:
Code: [Select]
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:
Code: [Select]
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.

*

Offline Matzon

  • *****
  • 2242
Re: AL11.alSpeedOfSound() throws UnsatisfiedLinkError
« Reply #1 on: July 29, 2009, 14:55:19 »
it should work - and I get the error too - not sure whats going on tho ...

Re: AL11.alSpeedOfSound() throws UnsatisfiedLinkError
« Reply #2 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.

*

Offline Matzon

  • *****
  • 2242
Re: AL11.alSpeedOfSound() throws UnsatisfiedLinkError
« Reply #3 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:

Re: AL11.alSpeedOfSound() throws UnsatisfiedLinkError
« Reply #4 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?

*

Offline Matzon

  • *****
  • 2242
Re: AL11.alSpeedOfSound() throws UnsatisfiedLinkError
« Reply #5 on: August 30, 2009, 21:03:53 »
do report them here preferably with a testcase (and a patch ;))