2024-02-23, 04:48
Hello!
I'm a long time Kodi user and I've hit a major snag after moving to a new PC. I'm seeking help to understand the root cause of this problem and explore potential solutions that allow DirectSound to function correctly with Bluetooth audio in Kodi on Windows 11. Any insights from developers or experienced users would be immensely appreciated.
Problem Description:
-After migrating from a Windows 10 PC to a new Windows 11 PC, experiencing persistent audio issues specifically when using Bluetooth audio with Kodi in DirectSound mode.
-Issues manifest as stuttering, garbled audio for a couple of seconds, and video playback problems when starting videos in Kodi. After the garbled audio, it never recovers.
-This occurs for any video I have tried.
-Key Workaround: Starting an audio stream from any other application (Spotify, Chrome, etc.) before opening Kodi completely resolves the issue within Kodi.
-Switching Kodi to WASAPI mode works, but causes unacceptable latency issues with the TempoUp feature I use a ton (to speed up video podcasts).
Version information:
Kodi 20.4.0
Windows 11 23H2
CPU: Intel N95, 64 bit
RAM: 16GB
GPU: Integrated Intel UHD Graphics; Driver version 31.0.101.5186
Bluetooth Adapter: TP-Link Bluetooth 5.3 USB Adapter; Driver version 1.9.1051.3009
Devices relevant to the problem:
-This occurs with any Bluetooth audio device I've tried (two headsets and a speaker)
-I have used 3 different Bluetooth adapters (one built into the PC, two adapters with Bluetooth 4.0 and 5.3 respectively)
-The PC is a Beelink Mini S12
Debug Log :
https://paste.kodi.tv/onixifekiz.kodi
NOTE: It was too large for the sites provided in the sticky so I cut out some of the repeated errors - if you need the FULL log, I can upload it somewhere but I know that is not allowed
Log Analysis:
-Kodi debug log shows repeated instances of these lines during problematic playback:
"warning <general>: CWin32DirectSound::GetSpace - buffer underrun"
"warning <general>: ActiveAE - large audio sync error:"
Troubleshooting Steps Attempted:
-Verified latest Bluetooth adapter drivers on both old and new PCs. Tested with multiple Bluetooth adapters (standards 3.0 and 5.3).
-Tested with Bluetooth headphones and a Bluetooth speaker, issue persists on both.
-Confirmed no physical interference or distance issues.
-Ensured Kodi is fully updated.
-Removed background apps, disabled real-time antivirus protection.
-Tweaked Kodi audio settings (channels, resample quality, "keep alive", Output configuration (most notably set to Fixed, 44.1 kHz)).
-Tested changing other settings (Adjust refresh rate, Sync playback to display)
-Experimented with 'advancedsettings.xml' (buffer settings mostly - tried large and 0 buffer, multiple buffermodes).
-Tried clean Kodi install with minimal/default configuration.
-Old PC (Windows 10) with same Bluetooth adapter and Kodi settings works without issue.
System Considerations:
-Issue is isolated to Kodi: Bluetooth audio works correctly on my new Windows 11 PC with other applications.
-Windows 10 vs. 11 Factor: The problem started specifically upon migrating to a new Windows 11 PC.
Any input you can provide would be appreciated!!
-attmay
I'm a long time Kodi user and I've hit a major snag after moving to a new PC. I'm seeking help to understand the root cause of this problem and explore potential solutions that allow DirectSound to function correctly with Bluetooth audio in Kodi on Windows 11. Any insights from developers or experienced users would be immensely appreciated.
Problem Description:
-After migrating from a Windows 10 PC to a new Windows 11 PC, experiencing persistent audio issues specifically when using Bluetooth audio with Kodi in DirectSound mode.
-Issues manifest as stuttering, garbled audio for a couple of seconds, and video playback problems when starting videos in Kodi. After the garbled audio, it never recovers.
-This occurs for any video I have tried.
-Key Workaround: Starting an audio stream from any other application (Spotify, Chrome, etc.) before opening Kodi completely resolves the issue within Kodi.
-Switching Kodi to WASAPI mode works, but causes unacceptable latency issues with the TempoUp feature I use a ton (to speed up video podcasts).
Version information:
Kodi 20.4.0
Windows 11 23H2
CPU: Intel N95, 64 bit
RAM: 16GB
GPU: Integrated Intel UHD Graphics; Driver version 31.0.101.5186
Bluetooth Adapter: TP-Link Bluetooth 5.3 USB Adapter; Driver version 1.9.1051.3009
Devices relevant to the problem:
-This occurs with any Bluetooth audio device I've tried (two headsets and a speaker)
-I have used 3 different Bluetooth adapters (one built into the PC, two adapters with Bluetooth 4.0 and 5.3 respectively)
-The PC is a Beelink Mini S12
Debug Log :
https://paste.kodi.tv/onixifekiz.kodi
NOTE: It was too large for the sites provided in the sticky so I cut out some of the repeated errors - if you need the FULL log, I can upload it somewhere but I know that is not allowed
Log Analysis:
-Kodi debug log shows repeated instances of these lines during problematic playback:
"warning <general>: CWin32DirectSound::GetSpace - buffer underrun"
"warning <general>: ActiveAE - large audio sync error:"
Troubleshooting Steps Attempted:
-Verified latest Bluetooth adapter drivers on both old and new PCs. Tested with multiple Bluetooth adapters (standards 3.0 and 5.3).
-Tested with Bluetooth headphones and a Bluetooth speaker, issue persists on both.
-Confirmed no physical interference or distance issues.
-Ensured Kodi is fully updated.
-Removed background apps, disabled real-time antivirus protection.
-Tweaked Kodi audio settings (channels, resample quality, "keep alive", Output configuration (most notably set to Fixed, 44.1 kHz)).
-Tested changing other settings (Adjust refresh rate, Sync playback to display)
-Experimented with 'advancedsettings.xml' (buffer settings mostly - tried large and 0 buffer, multiple buffermodes).
-Tried clean Kodi install with minimal/default configuration.
-Old PC (Windows 10) with same Bluetooth adapter and Kodi settings works without issue.
System Considerations:
-Issue is isolated to Kodi: Bluetooth audio works correctly on my new Windows 11 PC with other applications.
-Windows 10 vs. 11 Factor: The problem started specifically upon migrating to a new Windows 11 PC.
Any input you can provide would be appreciated!!
-attmay