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
- Manual reference page for Grid Selection is missing
- Awaitable.NextFrameAsync causes GC Alloc 0.7 KB when using CancellationToken
- Prefab "Overrides" list item popups are overridden when navigating with keyboard arrow keys
- Alpha Tolerance setting does not affect generated outlines when generating Custom Physics Shape in the Sprite Editor
- The information/help message section misses a margin in the "Profiler" window
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