Search Issue Tracker
Fixed
Votes
9
Found in
2017.2.0b11
Issue ID
953287
Regression
Yes
3D Audio glitches when attached to a Rigidbody that receives multiple Physics updates in a single frame
Reproduction steps:
1. Open the attached project "3DAudioBug.zip";
2. Open the TestScene;
3. Observe two objects in the scene: one is with Rigidbody, another is without Rigidbody;
4. Enter a play mode with only 'TestWithRigidBody' enabled;
5. Stop the play mode and re-enter it with only 'TestWithoutRigidBody' enabled.
Expected: both times the audio should sound the same, without any glitches, smoothly.
Actual: When playing only with 'TestWithRigidBody', the audio starts glitching.
Reproduced on: 2017.1.0f1, 2017.1.1p4, 2017.2.0f2, 2017.3.0b2.
Not reproduced: 2017.1.0b10, 5.6.3p4 and lower.
Regression firstly introduced: 2017.1.0f1.
A workaround:
Add this to CameraFollowScript:
protected virtual void Awake()
{
GetComponent<AudioListener>().velocityUpdateMode = AudioVelocityUpdateMode.Fixed;
}
And change LateUpdate to FixedUpdate.
Comments (1)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Mouse input is registered incorrectly in Custom RP when downscaling Render Target and rendering Overlay UI before final upscale
- Time.deltaTime is locked to the display's refresh rate when the built Player is moved to a Secondary Display and Windowed Mode is used
- Crash on RaiseException when importing a specific asset
- Crash on RaiseException when opening a specific project
- DownloadHandlerScript.CompleteContent is called twice when building for WebGL
Tallek
May 03, 2018 15:14
I was able to use "AudioListener.velocityUpdateMode = AudioVelocityUpdateMode.Fixed" and moved my audio listener to a FixedUpdate to work around this issue.
https://docs.unity3d.com/ScriptReference/AudioListener-velocityUpdateMode.html