Jump to content
  • Advertisement
Sign in to follow this  

3D sound and distance atenuation

This topic is 4075 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I'm writing a game with 3d sound, but the sound volume seems to drop greatly over a short distance. I could rescale the game to work within a handful of units, but it seems like a bit of a bother. Is there some way i can modify how the volume is dropped over a distance?

Share this post


Link to post
Share on other sites
Advertisement
To be honest the game codes a bit jumbled and i don't want to further confuse the problem by copying ugly code.

but basically, I have a player object with a sound listener attatched to it. as the player moves around he tries to find his way to the sound source in the room. the problem is that the sound source starts off very faint, and i would rather be able to modify the volume of the source (or reduce the effect distance has on lowering volume) than scale down the game world.

Share this post


Link to post
Share on other sites
I don't know if this is the best idea, but you could always use a 2D sound source, and change the volume yourself. But that would mean you lose the 3D position of it.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!