Approaches to Automatic Weapon Sounds
Hey AW!
I’m looking to improve some automatic weapon sounds in UE native and I’m curious about the pros/cons of different approaches.
Approach 1 - play as single shot SoundCues, as events triggered from the gameplay blueprint. Could also use a Metasound for finer-grain control
Pro: ease of implementation, synchronicity between game event and audio (single shots are taken care of, no need for looping)
Con: even if it’s using a frame-independent timer, the game thread blueprint is often running on a per-frame update loop. So the cadence of the weapon sound will hitch when the frame rate varies
Approach 2 - devise a full-auto loop (using single shots) in meta sounds. This is essentially the approach in this Metasounds tutorial from a few years ago.
Pro: no chance of frame hitching, more control over sound concurrency/overlap
Con: need to manage loop start/stop, interface isn’t as handy for adding in new assets
Approach 3 - create a pre-rendered autofire loop and single shot with tail, swap according to behavior (either via main blueprint or metasound)
Pro: potentially least number of voices
Con: Need to manage/crossfade single shot → loop → single tail. Varying fire rate via pitch won’t sound very good
What has worked for other people? Any other approaches that I’m missing?