Teleporting causes doppler effect glitch

When the player is teleported, the pitch of sounds at the new destination might glitch for a moment.

SoundProblem.rbxl (12.4 KB)

  1. Wait for the audio to start playing
  2. Walk through the portal and back repeatedly, the pitch glitches whenever you teleport.
1 Like

what is the speed of sound in roblox?

1 Like

I’ll take a look into this. Currently we only calculate the velocity of the listener using the last frame, but we could probably do something smarter like using an average of the last 5 frames and discarding the highest value, so that sudden changes don’t make such an impact.

1 Like