Audio / I/O crash when switching outputs

• May 18, 2022 - 08:08
Reported version
3.6
Type
Functional
Frequency
Once
Severity
S2 - Critical
Reproducibility
Always
Status
active
Regression
No
Workaround
Yes
Project

When MuseScore is open and the output is switched from an external DAC, the program's I/O crashes after the first playback request. This can be from selecting a note or selecting play. The main solution is to restart MuseScore's audio drivers every time the output is switched. Alternatively, the output can be switched before launching MuseScore.

To be clear, this occurs when using PortAudio. Each API deals with the soundcard/DAC as a single output. In specific, the switcher goes between dedicated speakers and headphones. This issue is only seen in MuseScore, every other program is not affected by the DAC's internal switcher.

OS: Windows 10 (10.0), Arch.: x86_64, MuseScore version (64-bit): 3.6.2.548021803, revision: 3224f34