Search Issue Tracker
Fixed
Fixed in 2022.3.55f1, 6000.0.31f1, 6000.1.0a7, 7000.0.0a26
Votes
1
Found in
2022.3.38f1
6000.0.10f1
6000.1.0a3
Issue ID
UUM-75603
Regression
No
The Player lags when an audio device is connected/disconnected while the default audio source of the device stays the same
How to reproduce:
1. Open the “IN-80071_repro“ project
2. Connect an Xbox controller
3. Navigate to FIle → Build and Run
4. Plug in wired headphones to the controller
5. Wait a few seconds and unplug the headphones
6. Repeat the steps 4 and 5 multiple times and observe the Player
Expected result: The Player runs smoothly
Actual result: The Player lags sometimes
Reproducible with: 2021.3.40f1, 2022.3.38f1, 6000.0.10f1
Reproducible on: Windows 10
Not reproducible on: No other environment tested
Notes:
- Make sure to disconnect and reconnect the controller every time before building
- Make sure the default audio source of the device is not the controller and stays the same throughout
- Make sure FMOD Studio project is selected in the FMOD wizard
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
- “Baking ReferencedPrefabAuthoring!” errors are thrown when creating or deleting unrelated GameObjects in a SubScene that references prefabs
- Cannot scroll down to see all UI Builder Inspector items after content is resized
- Crash on SceneTracker::SetObjectDirty when entering Play mode on a project with specific Assets
- UI Toolkit's TextInput element does not inherit layout parameters from the TextField element when TextField.multiline is true
- The TileMap grid in the Tile Palette is not visible when Screen Space Ambient Occlusion is enabled
Resolution Note:
The submitted issue uses a 3rd party FMOD. Best to contact that vendor so they can fix it on their end.
If developer just disables "Unity Audio" in the player settings, that will eliminate any issues from the Unity Audio side.
Resolution Note (fix version 6000.1.0a7):
On Windows, we reduced how often we re-enumerate the list of audio devices, which causes a main thread stall. If an audio output device is added or removed, but the default device does not change, then we no longer re-enumerate. If an audio input device is added or removed, we defer the re-enumerate operation until the Unity app actually requests the updated list of microphones via C#.