Hello! I am currently writing a Doppler effect runner which is working very well. However, there is some artifacting in the sound.
Heres what it sounds like without artifacting:
And heres what it sounds like with the artifacting, you can hear it dip
Currently, the way it is updated to get it smooth is by listening for when the server changes playback speed, and update it by the calculate doppler value:
for _, sound: AudioPlayer in script.Parent:GetDescendants() do
if not sound:IsA("AudioPlayer") then continue end
local wasChanged = false
sound:GetPropertyChangedSignal("PlaybackSpeed"):Connect(function()
if wasChanged then wasChanged = false return end
sound.PlaybackSpeed = sound.PlaybackSpeed * script.Parent.DopplerValue.Value
wasChanged = true
end)
end
This works, but obviously theres still some artifacting and I think it may be related to the code here.
