Distance/radius before sound is heard

Post your questions, suggestions and experiences regarding game design, integration of external libraries here. For irrEdit, irrXML and irrKlang, see the
ambiera forums
Post Reply
kohaar
Posts: 61
Joined: Tue Oct 17, 2006 12:15 am
Contact:

Distance/radius before sound is heard

Post by kohaar »

Hi. How do I change the radius of the sound emitted, meaning the distance before the listener starts to hear the sound from its position.

I have tried min and max position, but if I change these values, sound can be heard (however very faint) even if I move extremely far away?
I also tried switching to linear attenuation, but when I do that, the sound just stutters.

Could you please give me an example?
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

The Min and Max values are explained here: http://www.devmaster.net/wiki/Attenuation_By_Distance, even the linear attenuation.
Basicly, for the default, logarithmic attenuation, only the min value makes the difference. Let the max value be huge, it is only there to 'clip' sounds for performance. The bigger the min value the bigger is the sound source.

Hope this helps.[/url]
kohaar
Posts: 61
Joined: Tue Oct 17, 2006 12:15 am
Contact:

Post by kohaar »

I tried to change only the min distance, and the sound source became bigger, but not matter how far I went from the sound source, a little sound could always be heard (even though it was very faint). That is what I would like to prevent?
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

EDIT: I thought what Niko was saying was backwards. Apparently it is not. FMOD is the same... http://www.fmod.org/docs/HTML/FSOUND_3D ... tance.html

Travis
kohaar
Posts: 61
Joined: Tue Oct 17, 2006 12:15 am
Contact:

Post by kohaar »

Is it me who have done something wrong, or is it a general problem? I have read about it, but I'm not that great in sound theory. Maybe it's suppose to do that?
Post Reply