Hello Guest

int alGetSourcei(source,pname) always returns pname

  • 2 Replies
  • 11193 Views
int alGetSourcei(source,pname) always returns pname
« on: March 29, 2011, 18:22:24 »
I've tested this against LWJGL 2.0, 2.1, 2.2.2, 2.4.1, 2.6, 2.7.1:

Whenever I make calls to alGetSourcei it returns the property # instead of the value.  This is the case for AL_BUFFERS_PROCESSED and AL_SOURCE_STATE at the very least.

I'm trying to record audio from the microphone and play it back as a stream.


Re: int alGetSourcei(source,pname) always returns pname
« Reply #2 on: March 29, 2011, 19:58:11 »
Yeah,  That works fine.  Someodd interaction in my program i suppose. Recording works fine, but for some reason alGetSourcei(id,pname) always returned pname and not the actual values.  I've since scrapped my existing approach of streaming since it isn't necessary. 

Buffers win.