[Openal] Problem with alSourceUnqueueBuffers

qartar qartar at live.com
Wed Jun 3 02:32:05 PDT 2009



Luis-33 wrote:
> 
> Hi qartar. First of all, how big are your buffers? They might be too
> small.
> Also, from what I see, you are only unqueuing a single buffer per
> iteration,
> even if count is indicating more than one buffer processed. You should
> unqueue and refill every processed buffer in each loop iteration, else
> your
> source is going to run out of audio data quickly. Hope that helps :)
> By the way, is there any reason not to be using buffers in a circular way?
> 
> Cheers!
> 

Thank you for your reply. The buffers are fairly small since they are
updated around 60 hz, so approximately 360ish samples per iteration, but I
never saw any documentation referring to minimum buffer sizes so I am a
little confused. (It may be worth to mention again that no errors are being
generated). The function determines how many samples to fill per iteration
by checking the current source sample offset against a mixahead value so
even if there are extra processed buffers the source does not underrun. As
far as circular buffers go, since I haven't seen a way to update a buffer
while it is playing (a la DirectSound) I thought this would be close. If you
have better solution I would be very interested.
-- 
View this message in context: http://www.nabble.com/Problem-with-alSourceUnqueueBuffers-tp23845230p23848351.html
Sent from the OpenAL - User mailing list archive at Nabble.com.



More information about the Openal mailing list