Hello everyone, i have run into yet another problem >_<
Well i have a radio in my game and i have a song it plays set to 3D sound, but when i move closer to it the song speeds up and when i move away it slows down, any way to get rid of this? And also the music can be heard from across the map which isn't supposed to happen so is there a way to set the sound range?
Thanks in advance
asked Nov 29 '09 at 04:41 AM
The speeding up and slowing down is a result of having the Doppler Factor set to a value different from 0 (actually, it's an increase and decrease of the sound's pitch - but pitch and "speed" are equivalent in sampled audio-files). You can change this in menu: Edit/Project Settings/Audio. Doppler is actually a nice effect and you might just want to tweak it so that it sounds more realistic (unless you need control over the playback speed of your sound clip for synchronization reasons).
How the sound changes volume by distance is controlled via the Rolloff Factor in the Audio Source property inspector. The minimum and maximum volume are controlled via "Min Volume" and "Max Volume", so maybe you have a "Min Volume" greater than zero.
answered Nov 29 '09 at 11:29 AM