-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Audio stutter on win11 due to broken Directsound #20567
Comments
Tested on Intel NUC8i3BEK + Windows 11 + DirectSound and I can not reproduce. |
Could this be a hardware-specific issue? However, Kodi is the only broken app I observed so far. My win11 is clean installed via official iso downloaded from MS website and all drivers are automatically installed via windows update, so it can't be an issue due to improper OS configuration. |
Try set default audio device to "Speakers - 扬声器 (2- Realtek High Definition Audio(SST))" Maybe only occurs with "Headphones - 耳机 (EDIFIER TWS1 Pro)" Anyway log posted is no debug log... |
Wow exactly, Directsound works well with the speaker. It's problematic with my BT headset. Unpairing and re-pairing didn't help. What else should I provide to assist in diagnosing? |
Is not Kodi bug. Is specific hardware/driver issue. I am going to close this as github issues is not for support. Please use forum (https://forum.kodi.tv/forumdisplay.php?fid=59) for support. |
Windows 11 update KB5007262 may fix this issue. November 22, 2021—KB5007262 (OS Build 22000.348) Preview
|
Mine is already 22000.348, but pretty sure the issue persists before and after this update. |
I also have this issue on a desktop running Windows 11 (version 22000.593) with Kodi 19.4 and using Sony WH-1000XM3 bluetooth headphones. Switching from DirectSound to WASAPI in Kodi does seem to fix it. The exact same configuration with DirectSound works fine on Windows 10 so it definitely seems to be a Windows 11 problem. |
can confirm this happens on Win 11, also using bluetooth headphones. edit: got it to work a lot better - you have to set the Audio setting from "best match" to "fixed" - I also swapped it to 2.1 audio. There's some occasional blips, but it's significantly improved, whereas before the video became completely unwatchable after 30 seconds or so. It's by no means perfect, though. |
problem still persists I don't understand why it's closed Kodi is the culprit obviously |
Same problem here with BT headphone (Soundcore Q30) on Win11. Win10 worked perfeclty, but win11 only works with WASAPI. Any fix? I really need directsound to work as i'm wanting to use with 'dolby atmos for headphones'. |
Suffering the same with any BT sound devices and Kodi, only option is using WASAPI. But, as the previous comment states, that means no Dolby Atmos for Headphones... Windows 10 worked perfectly. |
I'm using Kodi 20.2 with a Sony WH-1000XM4 with a bluetooth connection on Windows 11 and have the same stutter issue. |
@thexai please reopen this issue. It's confirmed by different people and happening on various hardware. |
I've found a strange workaround which has worked reliably so far. I call it "priming the pump."
|
I'm using Kodi 20.2 with a Sony WH-1000XM4 with a bluetooth connection on Windows 11 and have the same stutter issue as well. |
Solution To use WASAPI (Windows Audio Session API) instead of DirectSound in Kodi, you'll need to adjust the audio settings within Kodi. Here's how you can do it:
By following these steps, you should be able to switch Kodi's audio output from DirectSound to WASAPI. Keep in mind that the availability of WASAPI as an option may depend on your system configuration and the version of Kodi you're using. |
You have to uninstall Realtek Audio Console if you happen to have it. |
This issue persists. It does not occur with every Bluetooth device, but it occurs with many. I have also tried it on multiple PCs. I posted a forum post about this behavior and everything I've tried to resolve it. The reason WASAPI won't work for me is the "TempoUp" option I use when watching certain content (it is garbled and crackly with WASAPI). I do believe this is something Kodi should be able to address even if the developers do not believe Kodi is to blame. I also discovered the workaround described above as 'priming the pump' and it does work for me, but it's not a solution: #20567 (comment) My forum post: https://forum.kodi.tv/showthread.php?tid=376406 |
Came here to say I'm having this exact problem. WASAPI is the only audio output that doesn't stutter, but it doesn't then work when other audio is playing. |
Issue is fixed and fix is included in v22 nightlies: |
Hi all, tested on latest 22 nightly, sounds now outputs constantly but lot of glitch/pops (not sure how to say it) but to make it simple, quality of sound is bad 😢 |
Can you post a log, please? I suspect this is underruns (due to buffer / period configuration) ... let's see. |
Indeed my friend, there seems to be buffers underrun.
here is the log of yesterday
Le dim. 7 juil. 2024 à 03:51, Peter Frühberger ***@***.***> a
écrit :
… Can you post a log, please? I suspect this is underruns (due to buffer /
period configuration) ... let's see.
—
Reply to this email directly, view it on GitHub
<#20567 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/BAUS7YONT4Z5NNGOEYNPPZTZLD6PNAVCNFSM5ITTFIRKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMRRGIZTONBUHE2A>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
The attachment, did not make it. Please reply on github and post a link to a paste.kodi.tv url. |
oups sorry, seems it didn't go via email. here it is |
Can you test this new build: |
Hi Works perfect for me :-) Thanks a lot for the fix! |
Bug report
Describe the bug
After moving from win10 to win11, I can no longer enjoy videos on kodi. Audio stutters all the way including UI sound. A workaround I found is switching the audio backend to WASAPI, where Directsound, the default choice, seems to be broken. Both the UWP version from M$ store and the .exe installer suffer from the same problem.
Expected Behavior
Audio plays normally.
Actual Behavior
Both UI sound and video sound stutter all the way.
Possible Fix
No idea.
To Reproduce
Steps to reproduce the behavior:
Debuglog
The debuglog can be found here, which is full of:
Full log: https://fars.ee/nYT6.log (captured from a fresh UWP install)
Your Environment
Used Operating system:
Android
iOS
tvOS
Linux
OSX
Windows
Windows UWP
Operating system version/name: Windows 11 Home 21H2 22000.348
Device: Surface Pro 7
Kodi version: 19.3
note: Once the issue is made we require you to update it with new information or Kodi versions should that be required.
Team Kodi will consider your problem report however, we will not make any promises the problem will be solved.
The text was updated successfully, but these errors were encountered: