Hello Guest

Getting source type fails with AL10

  • 1 Replies
  • 10087 Views
Getting source type fails with AL10
« on: February 03, 2006, 07:15:12 »
Calling AL10.alGetSourcei(sourceid, AL10.AL_SOURCE_TYPE); fails with the following exception stack trace.
Code: [Select]

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?

*

Offline Matzon

  • *****
  • 2242
Getting source type fails with AL10
« Reply #1 on: February 03, 2006, 07: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 ;))