thedocruby / resounding

A New Minecraft mod that provides realistic audio physics using parallel wave tracing and an improved physics algorithm.
https://thedocruby.dev/resounding
GNU Lesser General Public License v3.0
85 stars 4 forks source link

Sound delay(s) #54

Open MPCTgit opened 2 years ago

MPCTgit commented 2 years ago

This feature would delay sound of lightning in-game, depending of how far you are, to create a more realistic experience for thunderstorms. It should not be to significant as sound in the real world travels about 340 meters in a second (so 340 blocks) and the simulation distance is usually (for single player) 12 chunks which is 192 blocks. There could also be a config to toggle this on/off or a multiplier for people who want to increase the time or decrease it.

An alternative could also be added for TNT because it is another loud sound source, but this could create a lot of lag for huge amounts of TNT exploding at the same time.

mikenrafter commented 1 year ago

Better locational audio could also be achieved here.
Differing delays between sound reaching your left/right ear are crucial to understanding locational audio.

Since this would add delays to sounds, why not separate the delays into 2 channels, for that much more realism... (rhetorical question)
OpenAL is challenging to work with, but some solution here will likely be reached.

mikenrafter commented 1 year ago

To clarify, this issue is being generalized due to implementation details (and physics, really) to include echo, too.