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
- GameObjects are transparent when a custom fog renderer feature is enabled
- HDRP Decal Projector "Rendering Layer Mask" overwrite hidden when the value is changed
- Assertion failed and ArgumentException are thrown and Scene/Game views do not render when Render Graph is enabled and requirements are set in Full Screen Pass Renderer Feature
- [Linux] Crash on EditorLaunchScreen::PlatformEditorLaunchScreen::SetProgress when opening a project and progress bar is showing
- 'Load texture data on demand' corrupts Unity's packages Gizmos in Scene View
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