LWJGL
May 17, 2012, 03:09:56
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
LWJGL 2.8.3 released!
Home
Help
Search
Login
Register
LWJGL
>
Programming
>
OpenAL
>
javadoc alSourceUnqueueBuffers() incorrect?
Pages: [
1
]
« previous
next »
Print
Author
Topic: javadoc alSourceUnqueueBuffers() incorrect? (Read 3693 times)
gimbal
Newbie
Posts: 12
javadoc alSourceUnqueueBuffers() incorrect?
«
on:
December 08, 2005, 15:49:50 »
I'm just beginning to learn OpenAL, but I think I have stumbled onto an incorrect javadoc entry for the mentioned function. The OpenAL programmers manual states the following:
Parameters:
source - the name of the source to unqueue buffers from
n - the number of buffers to be unqueued
buffers - a pointer to an array of buffer names that were removed
WERE removed, which tells me that alSourceUnqueueBuffers() determines the buffer names to be removed, not the game code. The game code only specifies the AMOUNT of buffers to remove (with 'n', which in LWJGL is the amount of remaining integers in the IntBuffer).
Yet the javadoc states the following:
Parameters:
source - source to unqueue buffers from
buffers - buffers to be unqueued
Like you have to specify yourself which buffers should be unqueued.
Am I reading the OpenAL docs wrong, or is the javadoc incorrect / missing some details? If I am reading the OpenAL docs correctly, then all you have to do is:
1) query the AL_BUFFERS_PROCESSED value using alGetSourcei()
2) create an IntBuffer of size 'AL_BUFFERS_PROCESSED'
3) call alSourceUnqueueBuffers() and pass the created IntBuffer
Then after the call is completed the IntBuffer contains all the names of the buffers that were unqueued, right?
Logged
Matzon
Administrator
Demigod
Posts: 2177
javadoc alSourceUnqueueBuffers() incorrect?
«
Reply #1 on:
December 08, 2005, 22:26:42 »
yes you are right. I'll update the java doc to:
buffers - IntBuffer containing list of names that were unqueued
Logged
http://certusgames.com
(Free Online Multiplayer Java Games)
http://lwjgl.org
(OpenGL/OpenAL for Java)
gimbal
Newbie
Posts: 12
javadoc alSourceUnqueueBuffers() incorrect?
«
Reply #2 on:
December 09, 2005, 07:03:23 »
Thanks for verifying it
(I was pretty much sure anyway)
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Programming
-----------------------------
=> Lightweight Java Library Game Development
=> LWJGL Documentation
=> Bug Reports / RFE
=> OpenGL
=> OpenAL
=> General Java Game Development
-----------------------------
Archive
-----------------------------
=> Resolved Bugs/RFE
=> DirectX
=> DevIL
=> FMOD
Loading...