LWJGL Forum

Programming => OpenAL => Topic started by: 1n4001 on March 29, 2011, 18:22:24

Title: int alGetSourcei(source,pname) always returns pname
Post by: 1n4001 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.
Title: Re: int alGetSourcei(source,pname) always returns pname
Post by: Matzon on March 29, 2011, 19:25:58
http://java-game-lib.svn.sourceforge.net/viewvc/java-game-lib/trunk/LWJGL/src/java/org/lwjgl/test/openal/ALCCaptureTest.java?revision=2983&view=markup
Title: Re: int alGetSourcei(source,pname) always returns pname
Post by: 1n4001 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.