Hello,
I am using th following code to know if a source is still playing (each game frame)
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.
Quote from: "Arman"Hello,
I am using th following code to know if a source is still playing (each game frame)
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:
AL10.alGetSourcei(sourceNumber, AL10.AL_SOURCE_STATE)
Thank you Matzon