Skip to content
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

Sound buggy or not depending on the display frequency. #23574

Open
1 of 7 tasks
JGoutin opened this issue Aug 1, 2023 · 2 comments
Open
1 of 7 tasks

Sound buggy or not depending on the display frequency. #23574

JGoutin opened this issue Aug 1, 2023 · 2 comments
Labels
Triage: Needed (managed by bot!) issue that was just created and needs someone looking at it

Comments

@JGoutin
Copy link

JGoutin commented Aug 1, 2023

Bug report

Describe the bug

Depending the configured screen frequency, the sound works correctly or not.
When not working, the sound alternate every ~1 second between silent part and very short sound part that look speed up.

The bug appears when playing videos files (But not on all videos), it also appear when playing a game with libretro trough Kodi.

  • If I set 60Hz as screen frequency (with Adjust display refresh rate=Off), the sound is buggy.
  • If I set 30Hz as screen frequency (with Adjust display refresh rate=Off), the sound is OK.
  • If I set either 30Hz or 60Hz screen frequency, and activate the Adjust display refresh rate option, the sound is buggy.

When I did my tests with the "Adjust display refresh rate" option enabled and various video files, I noticed that the frequency displayed by the debug overlay on the screen was :

  • 50Hz when the sound was buggy
  • 24Hz when the sound worked

Expected Behavior

Here is a clear and concise description of what was expected to happen:

Have the sound always correctly working.

Actual Behavior

The sound does not work correctly with some configuration.

My current working workaround are:

  • to set the screen frequency to 30Hz and disable the Adjust display refresh rate option.
  • Or enable Adjust display refresh rate and whitelist only display modes with 30Hz or less frequencies.

Possible Fix

To Reproduce

Steps to reproduce the behavior:

  1. Change screen frequency and/or Adjust display refresh rate parameter.
  2. Play video or game

Debuglog

The debuglog can be found here:
https://paste.kodi.tv/xopegiyemo.kodi

Screenshots

Here are some links or screenshots to help explain the problem:

Additional context or screenshots (if appropriate)

Here is some additional context or explanation that might help:

Kodi runs standalone with GBM. I also tested with Wayland (Using Sway) but the issue is still here.

I tried to fully reset my Kodi profile and also reset display/sound/video playback parameters, this does not helped.

Your Environment

Used Operating system:

  • Android

  • iOS

  • tvOS

  • Linux

  • macOS

  • Windows

  • Windows UWP

  • Operating system version/name: Fedora 38

  • Kodi version: 20.2 from RPM Fusion package (The problem was also present with older versions of Kodi, at least Kodi 19/18)

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.

@xbmc-gh-bot xbmc-gh-bot bot added the Triage: Needed (managed by bot!) issue that was just created and needs someone looking at it label Aug 1, 2023
@sarbes
Copy link
Member

sarbes commented Aug 3, 2023

Please test the workaround described in https://gitlab.freedesktop.org/mesa/mesa/-/issues/7977 and report back.

@JGoutin
Copy link
Author

JGoutin commented Aug 3, 2023

Added mesa_glthread=false but this does not fixed the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Triage: Needed (managed by bot!) issue that was just created and needs someone looking at it
Projects
None yet
Development

No branches or pull requests

2 participants