[Openal] Max distance

Bernardo Escalona-Espinosa escalonab at gmail.com
Fri Aug 12 13:32:06 PDT 2005


Hi Ales,

The maximum distance at which a sound is audible is not a parameter
that can be manually set in OpenAL. You can set parameters like
AL_REFERENCE_DISTANCE and AL_ROLLOFF_FACTOR in order to obtain the
kind of attenuation that you like, but there are many other factors
that determine whether a particular sound is audible at a given
distance or not, such as the type of sound that you are using, its
gain, how many other sounds you have playing at the moment, what
speakers you are using, how close the speakers are to the user's ears,
how good the user's hearing is, what he had for breakfast that day
(sorry:D), etc.

Hope this helps.



> Hi there,
>  I have a question about a way how to set some maximum distance, where
> sound can be listen. I did not find some source property for maximum
> distance where sounds play or did I missed it? Or should I check during
> update how far the sound from listerner is and manualy decrease gain or
> pause the sound?
> 
> Thanks for aswer.
>  regards Ales




<a href="http://bernsonline.com">berns</a>



-- 
___________________________________________
Bernardo Escalona Espinosa
  office: [52 55] 56 22 85 23
  fax:  [52 55] 56 22 88 77
  home: [52 55] 55 30 13 96
  cel: 55 18 56 74 73
  http://www.bernsonline.com/



More information about the Openal mailing list