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

Audio glitches and playback becomes unstable when USB headphones are plugged in. #18579

Closed
iceypotato opened this issue Jul 13, 2023 · 9 comments
Assignees
Labels
playback General playback issue

Comments

@iceypotato
Copy link

Issue type

General playback bug

Bug description

When plugging in my USB headphones and when I play the score in Musescore, the audio becomes glitched and the playback is much faster and more glitchy. In the past, plugging in my headphones would instantly crash Musescore, but it seems to have been fixed.

Steps to reproduce

  1. Plug in USB headphones
  2. Launch Musescore and load a score
  3. Play the score
  4. Listen to the audio

Screenshots/Screen recordings

musescore.issue.mp4

Log file: MuseScore_230713_105608.log

MuseScore Version

OS: Windows 10 Version 2009 or later, Arch.: x86_64, MuseScore version (64-bit): 4.1.0-231921402, revision: github-musescore-musescore-2e3a93a

Regression

No.

Operating system

Windows 11

Additional context

Plugging in my headphones used to crash musescore, so at least it is functioning.

@muse-bot muse-bot added the playback General playback issue label Jul 13, 2023
@bkunda
Copy link

bkunda commented Jul 14, 2023

@iceypotato what model headphones are you using?

Can you please attach the diagnostic files so we can look into it further?

@bkunda bkunda added the needs info More information is required before action can be taken label Jul 14, 2023
@iceypotato
Copy link
Author

How can I get the diagnostic files? I am using the hyper X cloud alpha S.

@MarcSabatella
Copy link
Contributor

My guess is this is a sample rate mismatch - MuseScore expecting 44.1 kHz but the new device having 96 or whatever. Unfortunately it seems there are a number of cases where having audio devices not at 44.1 kHz causes playback issues.

@iceypotato
Copy link
Author

All my speakers and such use 48 kHz, does musescore do some sort of conversion or switching?

@MarcSabatella
Copy link
Contributor

That isn't clear to me. I just know that every day we get a handful of reports from users about glitchy audio, and when we tell people to try setting their audio device to 44.1 kHz, they almost always report that fixed it.

@iceypotato
Copy link
Author

My audio devices do not seem to support 44.1 kHz, as there is no option, but when playing through just the speakers, which only has a 48 kHz option, it's fine.

@IndigoNao
Copy link

For the sake of reference, I have notated the difference I encountered when I experienced this issue. When I load MuseScore with my bluetooth headphones already connected, then remove them afterwards, everything gets pitched down by a quarter tone. Similarly, if MuseScore loads without my headphones, and then I connect them, everything gets pitched up by a quarter tone.

@DmitryArefiev
Copy link
Contributor

DmitryArefiev commented Aug 12, 2024

Should be fixed by #23954. But that PR doesn't cover audio device hotplug cases. I'll log it separately

For MuseSounds see #23954 (comment)

@DmitryArefiev
Copy link
Contributor

Please reopen if still occurs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
playback General playback issue
Projects
Development

No branches or pull requests

7 participants