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

Login with username, password and session length
News: LWJGL is now using GitHub
 
   Home   Help Search Login Register  



Pages: [1]
  Print  
Author Topic: AL_PLAYING  (Read 2253 times)
Arman
Newbie
*
Posts: 6


« on: June 12, 2004, 05:43:09 »

Hello,
I am using th following code to know if a source is still playing (each game frame)
Code:

AL10.alGetSourcei(sourceNumber, AL10.AL_PLAYING)

but it always return 0
Why?
Can you tell me if there is a standard/better way to know if a source is still playing
Thanks for your attention.
Logged
Matzon
Administrator
Demigod
*****
Posts: 2237



« Reply #1 on: June 12, 2004, 07:22:20 »

Quote from: "Arman"
Hello,
I am using th following code to know if a source is still playing (each game frame)
Code:

AL10.alGetSourcei(sourceNumber, AL10.AL_PLAYING)

but it always return 0
Why?


Actually you're getting an Invalid Enum error...

You need to check the AL_SOURCE_STATE flag:
Code:
AL10.alGetSourcei(sourceNumber, AL10.AL_SOURCE_STATE)
Logged

Arman
Newbie
*
Posts: 6


« Reply #2 on: June 12, 2004, 09:15:44 »

Thank you Matzon
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!