LWJGL
May 20, 2012, 23:11:02 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: LWJGL 2.8.3 released!
 
   Home   Help Search Login Register  



Pages: [1]
  Print  
Author Topic: Getting source type fails with AL10  (Read 2934 times)
Sormuras
Newbie
*
Posts: 46



« on: February 02, 2006, 23:15:12 »

Calling AL10.alGetSourcei(sourceid, AL10.AL_SOURCE_TYPE); fails with the following exception stack trace.
Code:

Exception in thread "main" org.lwjgl.openal.OpenALException: OpenAL error: Invalid Enum (40962)
at org.lwjgl.openal.Util.checkALError(Util.java:56)
at org.lwjgl.openal.AL10.alGetSourcei(AL10.java:811)

In al.h (OpenAL 1.1) the correct value is: 0x1027 ... but it feels like OpenAL 1.0 didn't have this query, right?
Logged
Matzon
Administrator
Demigod
*****
Posts: 2177



« Reply #1 on: February 02, 2006, 23:41:47 »

well, if there is a  AL10.AL_SOURCE_TYPE field, then it should be in 1.0 - however the constant value may have changed at some point during the 1.0->1.1 or the common headers work.

We have not updated the codebase to 1.1 since it's not done yet (nor has anyone actually comitted to doing the work Wink)
Logged

http://certusgames.com (Free Online Multiplayer Java Games)
http://lwjgl.org (OpenGL/OpenAL for Java)
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines
SMFAds for Free Forums
Valid XHTML 1.0! Valid CSS!