Getting source type fails with AL10

Started by Sormuras, February 03, 2006, 07:15:12

Previous topic - Next topic

Sormuras

Calling AL10.alGetSourcei(sourceid, AL10.AL_SOURCE_TYPE); fails with the following exception stack trace.
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?

Matzon

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 ;))