int alGetSourcei(source,pname) always returns pname

Started by 1n4001, March 29, 2011, 18:22:24

Previous topic - Next topic

1n4001

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.


1n4001

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.