[Openal] 3D Sound and moving Listener

Daniel PEACOCK dpeacock at creativelabs.com
Thu Nov 2 11:32:20 PST 2006





Hi,

Which platform are you using ?  And (if relevant) which OpenAL device are
you opening / using ?

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] 3D Sound and moving        
                                       Listener                            
             11/02/2006 11:05                                              
             AM                                                            
                                                                           
                                                                           
                                                                           
                                                                           




We want to have certain static ojbects emit sounds in our game and fade in
and out as the camera moves around the objects.  In our project we are
updating the listener with...
alListenerfv(AL_POSITION,    ListenerPos);
alListenerfv(AL_VELOCITY,    ListenerVel);
alListenerfv(AL_ORIENTATION, ListenerOri);
but there is no change to the sounds volume.  I then downloaded this
tutorial from devmaster.net
http://www.devmaster.net/articles/openal-tutorials/lesson2.php where it had

a source moving away from a static listener.  I changed it so that the
static listener was moving and the source itself was static and got the
same
problem as our project.


PS Thanks for the tip on handling the error in alGenSource to know when we
hit the limit of channels being used.  Worked that to make a smooth way of
kicking out lower priority sounds and retrying on the higher one.

_________________________________________________________________
Try Search Survival Kits: Fix up your home and better handle your cash with

Live Search!
http://imagine-windowslive.com/search/kits/default.aspx?kit=improve&locale=en-US&source=hmtagline


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

ForwardSourceID:NT000385D2



More information about the Openal mailing list