Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Simulate sound behind player?

A topic by Dre Rosales created Aug 07, 2020 Views: 204 Replies: 3
Viewing posts 1 to 2

Hello everyone.

I have an idea for a game i'd like to create during this jam. it would require me to simulate surround sound in stereo which should be fine for the four cardinal directions, but I'm not sure how to go about simulating noise behind the player. Any ideas?


Note: I have not started on any code at this point; this is purely brainstorming and discussion :)

Thanks ~Skel

HostSubmitted (1 edit)

Cool question! There’s a lot of ways you can accomplish this.

If you’re only modeling sounds in four directions, then the issue is distinguishing between sound sources that are ahead or behind. The simplest thing you could do is apply a lowpass filter to sounds behind the player so they sound muffled. It depends on your sound design, but a cutoff frequency of 2k Hz is a good starting point. Gain reduction might help too. Research acoustic shadow for more info.

For full 2D or 3D audio spatialization you might want to look into binaural rendering or a head-related transfer function (HRTF). By simulating human hearing in a physical space we can create a familiar analog to real life. Your game engine or audio library should have tools to get you started with this.

Thanks so much for your reply! I’d done a little research earlier today and this helps a ton!

A great place to start.

Thanks again!

~Skel

HostSubmitted

Happy to help! I’m excited to hear what you create. Cheers!