I have the studio listener tied to the camera which is being controlled by cinemachine + additional scripts.
I was trying to get the doppler effect working with a stationary object (with a studio emitter attached and Allow Non-Rigidbody Doppler enabled), and also trying to use the relative velocity between object and listener.
Initially the relative speed was stuck at 0 with no doppler effect, and the only way I could get it to react at all was to add a rigidbody to the camera object (where the listener was also attached). This does some pretty wild stuff though, and the relative velocity oscillates constantly, even if the camera is completely stationary.
I’m guessing this is due to the way the camera’s position is updated making it impossible to calculate the correct relative speed/distance between it and the object? Is there a workaround for this without needing additional scripting? Sticking the listener on the player object makes everything work perfectly, and makes implementation of the doppler effect very easy, but unfortunately we need the listener on the camera!
Thanks for confirming this. You mention there’s a workaround with code changes, is that on the Unity side, and if so would you be able to share what these would be? The programmer and I were experimenting with sending this in LateUpdate (to try and override whatever the StudioListener/Emitter was doing) but had no luck:
I have implemented a workaround doppler effect myself but in the limited time I’ve had with it I haven’t been able to get it to sound as nice as the FMOD implementation so if there was a way to get the built in version working that would be awesome.