I have an audio source on the gun holded by the player (first person view). When the player pulls the trigger, I use PlayOneShot to play the gunshot sound. It works.
When the audio is played, it’s volume isn’t always the same. When the player is moving, the sound of the gun is stronger.
What I’ve tried:
I have lowered doppler to zero.
I have tried setting audiosource’s velocityUpdateMode on both possible settings.
I have tried changing spatial blend both to 2d and 3d.
Clearly I’m doing something wrong, but I can’t figure out what.
To be sure the volume IS different (and it’s not my ears acting strange) I’m using Audacity to check audio output level.
Any help would be appreciated.