[Openal] Playing a source with no buffer

Daniel PEACOCK dpeacock at creativelabs.com
Thu Mar 13 13:34:52 PDT 2008





Hi Tim,

There is a newer X-Fi driver available (ctaud2k.sys version 5.12.1.1187)
from creative.com.

I just test that one here - and playing a Source with no Buffers attached
immediately changes the state to AL_STOPPED.

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 
                                       "Daniel PEACOCK"                    
             03/13/2008 12:05          <dpeacock at creativelabs.com>         
             PM                                                         cc 
                                       <openal at opensource.creative.com>    
                                                                   Subject 
                                       RE: [Openal] Playing a source with  
                                       no buffer                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           




I’m using the default OpenAL device, i.e. alcOpenDevice(NULL).
Soundcard: Creative SB X-Fi
Driver: ctaud2k.sys v. 5.12.0001.1144
OS: Win XP Pro Version 2002 SP 2.
I’m running the OpenAL 1.1 SDK from the Creative site.

From: Daniel PEACOCK [mailto:dpeacock at creativelabs.com]
Sent: Thursday, March 13, 2008 12:24 PM
To: Tim Sorrells
Cc: openal at opensource.creative.com
Subject: Re: [Openal] Playing a source with no buffer



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.


(Embedded image moved to file: pic06914.gif)Inactive hide details for "Tim
Sorrells" <tsorrells at breakawayltd.com>"Tim Sorrells"
<tsorrells at breakawayltd.com>



                                                                           
                         "Tim Sorrells"                                    
                         <tsorrells at brea                                   
                         kawayltd.com>                                     
                         Sent by:                                          
                         openal-bounces@                                To 
                         opensource.crea                                   
                         tive.com                        <openal at opensourc 
                                                         e.creative.com>   
                                                                           
                         03/13/2008                                     cc 
                         07:36 AM                                          
                                                                           
                                                                   Subject 
                                                                           
                                                         [Openal] Playing  
                                                         a source with no  
                                                         buffer            
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           



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
ForwardSourceID:NT0005D3B6
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pic06914.gif
Type: image/gif
Size: 105 bytes
Desc: not available
Url : http://opensource.creative.com/pipermail/openal/attachments/20080313/a9f587e4/pic06914.gif


More information about the Openal mailing list