[Openal] Problems with streaming
Jeremy Henry
jeremy_h at hotmail.com
Mon Jun 19 07:39:05 PDT 2006
Thanks for reply Dan,
I've been out of touch all weekend just moved and until tonight no internet.
By getting stuck I mean it will play through all the buffers I would
create and then get caught on playing only the last buffer playing the same
data over and over. I am running this in Windows XP and I am just using the
basic OpenAL SDK so no 'device' if thats what you mean. How would I check
for buffer starvation too? I have been analyzing the problem and I get back
the error code a003 (AL_INVALID_VALUE) when I try to add a new buffer to the
stream. Now I know that the size parameter and data are not null so the
buffer must still be thought to be in use. Shouldn't the
alSourceUnqueueBuffers function release that buffer from the source? As you
see in the update function I immediately try to fill the buffer I unqueue
but I will get the error message. I did a little bit of a hack to only
queue up all the buffers once as I do in the playback function with a
'static bool bOnce' hack and in that case it will play through the entire
track but it is very skippy still getting the a003 message until all the
buffers have played then it fills each one. Hopefully all this makes some
sense but I will try to clarify anything if I can.
From: Daniel PEACOCK <dpeacock at creativelabs.com>
To: openal at opensource.creative.com
Subject: Re: [Openal] Problems with streaming
Date: Fri, 16 Jun 2006 14:37:46 -0700
Hi Jeremy,
I didn't see any obvious problems in the code ... except that you are not
checking for buffer starvation (i.e you are assuming the Source always has
enough data queued on it).
What OS are you using ? And if appropriate, what OpenAL device ?
I'm not sure what you mean by "gets stuck on playing the second buffer" ...
do you mean that you don't hear the 2nd buffer, or the 2nd buffer is never
processed, or something different ?
Thanks,
Dan
Notice
The information in this message is confidential and may be legally
privileged. It is intended solely for the addressee. Access to this
message by anyone else is unauthorized. If you are not the intended
recipient, any disclosure, copying or distribution of the message, or
any action taken by you in reliance on it, is prohibited and may be
unlawful. If you have received this message in error, please delete it
and contact the sender immediately. Thank you.
"Jeremy Henry"
<jeremy_h at hotmail
.com> To
Sent by: openal at opensource.creative.com
openal-bounces at op cc
ensource.creative
.com Subject
[Openal] Problems with streaming
06/16/2006 10:32
AM
I have the code compiling and running without crash the music even sort of
plays. The problem is that the first buffer that is loaded plays and then
it gets stuck on playing the second buffer. Here is a link to a post a
made
for easier viewing of the code. Also is there a channel in irc that I
could
go for real-time help?
Thanks,
Jeremy
http://www.devmaster.net/forums/showpost.php?p=34918&postcount=74
_______________________________________________
Openal mailing list
Openal at opensource.creative.com
http://opensource.creative.com/mailman/listinfo/openal
ForwardSourceID:NT00032DFE
_______________________________________________
Openal mailing list
Openal at opensource.creative.com
http://opensource.creative.com/mailman/listinfo/openal
More information about the Openal
mailing list