Question by
Narthe · Jan 29, 2016 at 09:29 PM ·
audiosourcerangevolumeaudiolistenerpitch
AudioListener changes only volume and not pitch
Hello, I created a simple scene with an audiosource and an audiolistener attached to a gameObject. When moving the audiolistener around the audiosource it works well, the volume gets lower or higher, but moving the audiolistener also changes the pitch, the faster i move my audiolistener, the higher the pitch gets, which i don't want, i only want to change the volume. My audiosource settings are the following ones :
How can i get only the volume to change ?
audiosource-settings.png
(24.7 kB)
Comment
I think thats the doppler effect of the audio source. Try fiddling with that.
Best Answer
Answer by Cepheid · Jan 29, 2016 at 10:08 PM
Simply turn down the doppler level on the AudioSource. This will stop the doppler effect which cause variations in pitch when object's move.