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
- Character spacing value is not applied when using a specific font asset
- [Android][IL2CPP] Player crashes on __memcpy_aarch64_simd+276 when invoking native code via a plugin on some ARM64 Android devices
- [Android]Resources fail to load when the AAB build contains a large Addressables Bundle
- Unity is loading internal version of SharpZipLib instead of local version
- The Context Menu items are ordered incorrectly
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