LWJGL
May 20, 2013, 18:40:19 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: LWJGL 2.9.0 released!
 
   Home   Help Search Login Register  



Pages: [1]
  Print  
Author Topic: int alGetSourcei(source,pname) always returns pname  (Read 2209 times)
1n4001
Newbie
*
Posts: 4


« on: March 29, 2011, 11: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.
Logged
Matzon
Administrator
Demigod
*****
Posts: 2237



« Reply #1 on: March 29, 2011, 12: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
Logged

1n4001
Newbie
*
Posts: 4


« Reply #2 on: March 29, 2011, 12: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.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
SMFAds for Free Forums
Valid XHTML 1.0! Valid CSS!