MuseScore
MuseScore copied to clipboard
Conflicting audio access
Issue type
General playback bug
Bug description
There is a conflict in accessing the audio device: while other apps (like video player, audio player, audio playing in a browser) access the audio device for playing sound, Musescore is unable to playback any score loaded. The other way, while playback in Musescore is running, no other app can play sounds.
Steps to reproduce
- Open a video app, like youtube, VLC and play a video with sound
- While video is playing start Musescore and load a score
- Try to start the playback. It does not start at all
- After stopping other apps playing sound and closing them and after restart of Musescore playack works as expected
- Looking at the system panel for audio while Musescore is executing the playback Musescore is not listed as an app that currently uses the audio device. This is weird because normally any app that uses the audio device appears on that panel.
It looks like Musescore is trying to access the audio device in a non standard way (it is probably accessing the hardware directly, according to an entry in the log file, which is a no go in my opinion). Other apps do not show these symptoms (I can play several sound sources at the same time) .
Screenshots/Screen recordings
No response
MuseScore Version
OS: TUXEDO OS 2, Arch.: x86_64, MuseScore version (64-bit): 4.2.1-240230938, revision: github-musescore-musescore-d757433
Regression
I don't know
Operating system
Ubuntu 22.04, MuseSounds installed
Additional context
2024-02-21T19:13:05.112 | ERROR | main_thread | AudioModule::setupAudioDriver | audio output open failed 2024-02-21T19:13:05.124 | WARN | main_thread | Qt | QIODevice::read (QFile, "/home/klaus/.local/share/MuseScore/MuseScore4/shortcuts.xml"): device not open 2024-02-21T19:13:05.124 | WARN | main_thread | Qt | QIODevice::read (QFile, "/home/klaus/.local/share/MuseScore/MuseScore4/midi_mappings.xml"): device not open