Ive attached a script to my camera which enabled zoom in/out using the mouse wheel. I have an object which produces a sound, the sound settings are attached, its basically:
- Play on awake
- Linear rolloff
when I zoom in or out near the audio source, the sound gets distorted. but when the AudioListener object is at a constant distance from the AudioSource, the clip is played with no issues.
What can I do to fix this? I was expecting to hear the sound fade in/out as I zoom in/out.
I’ve tried to attach a recording of the audio as I zoom in, then out, then not moving, but I couldnt upload since the site does not accept such file types.