[Openal] Reseting a source

Daniel PEACOCK dpeacock at creativelabs.com
Thu Aug 30 15:07:22 PDT 2007





Hi Xavier,

There is no API call to reset the attributes on a Source - so you have to
(re)set each parameter individually.   I would imagine that most of the
time the "re-used" Source would require some specific attributes rather
than the defaults - so it is more efficient to set the desired parameters
immediately.  You are absolutely right that it does mean that you have to
be careful to (re)set all the attributes.    Speaking for the Windows
implementations (where this is more relevant anyway), setting a Source
attribute to the same value that it is already, doesn't cause any work to
be done.

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.




                                                                           
             Xavier Bouchoux                                               
             <xavier at nadeo.com                                             
             >                                                          To 
             Sent by:                  openal at opensource.creative.com      
             openal-bounces at op                                          cc 
             ensource.creative                                             
             .com                                                  Subject 
                                       [Openal] Reseting a source          
                                                                           
             08/30/2007 12:00                                              
             PM                                                            
                                                                           
                                                                           
                                                                           




hi,

I have a pool of sources, which I use and reuse, depending on the
ressource manager needs.

But it occured to me that when I was reusing a source, I wasn't quite
sure of it's attributes.
So I have to reset all the attributes (or at leat the one I modify in my
code) to the default values.

So I'm wondering if there such a "alSourceResetToDefaults()" function or
some standard way to do it - to be sure not to miss any attribute?
(or if not, this is a suggestion for a revision of the API!)

xavier.

_______________________________________________
Openal mailing list
Openal at opensource.creative.com
http://opensource.creative.com/mailman/listinfo/openal

ForwardSourceID:NT0004623E



More information about the Openal mailing list