I'm using XNA 4.0 and trying to reproduce an "underwater effect" for every sound played.
How can I apply an effect to a sound, and what effect should I use to make it sound like as if the player is underwater while hearing it?
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It only takes a minute to sign up.
Sign up to join this communityI'm using XNA 4.0 and trying to reproduce an "underwater effect" for every sound played.
How can I apply an effect to a sound, and what effect should I use to make it sound like as if the player is underwater while hearing it?
DynamicSoundEfectInstance might be a good start.
Load the sound into a buffer from a file, then apply a custom low-pass filter to it.
See this question for more detailed information on adjusting audio in XNA.