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.
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
- SpeedTree importer fails to import .st files when path to the project includes a special character
- [VFX Graph] HSLS Redefinition error when input have the same name as attributes
- [VFX Graph] HLSL VFXFIXED_RAND isn't working
- Crash on Meta Quest 2 when using Vulkan
- Greyed out Icon for Tool Context is misaligned in the Tools Overlay in the URP 3D Sample Template
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