[Openal] Playing a source with no buffer
Daniel PEACOCK
dpeacock at creativelabs.com
Thu Mar 13 10:23:47 PDT 2008
I agree that this sounds like a bug. What OpenAL device are you using, and
on which soundcard and OS?
Dan
Creative Labs, Inc.
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.
"Tim Sorrells"
<tsorrells at breaka
wayltd.com> To
Sent by: <openal at opensource.creative.com>
openal-bounces at op cc
ensource.creative
.com Subject
[Openal] Playing a source with no
buffer
03/13/2008 07:36
AM
I ran into something unexpected while streaming in a wave. What happens is
when the source is created it queues a request in another thread to stream
in the wave data from the harddrive. However the user is free to call Play
on the source at any time, even before any data has been streamed yet. So
the problem is when it calls alSourcePlay on a source with no associated
buffer. What I’m expecting is that it will change to the AL_PLAYING state
immediately, but then the next time OpenAL updates it will realize it has
no data and cycle to AL_STOPPED, the same behavior as if it had run out of
data in an associated buffer. Instead it stays in AL_PLAYING indefinitely
while, of course, not actually playing any sound.
So I don’t think this should be desired behavior. It seems to me either
the state should cycle to AL_STOPPED (or even AL_INITIAL since there’s no
sound data for the source yet) or this should be an invalid operation and
an error should be issued._______________________________________________
Openal mailing list
Openal at opensource.creative.com
http://opensource.creative.com/mailman/listinfo/openal
ForwardSourceID:NT0005D32E
More information about the Openal
mailing list