Bug 410886 - "plasmashell: Playback Stream" application occupies exclusive audio output device
Summary: "plasmashell: Playback Stream" application occupies exclusive audio output de...
Status: RESOLVED NOT A BUG
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (show other bugs)
Version: 5.15.4
Platform: Kubuntu Linux
: NOR normal
Target Milestone: 1.0
Assignee: David Edmundson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-08-13 23:47 UTC by flighter007
Modified: 2019-08-13 23:51 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description flighter007 2019-08-13 23:47:02 UTC
SUMMARY
The "plasmashell: Playback Stream" seems to be using up direct audio output device for audio output, causing audio players unable to use the same direct audio output to bypass pulseaudio server for bit-perfect audio playback. Killing plasmashell manually solves this problem with audio playback.


STEPS TO REPRODUCE
1. Install and run Deadbeef through command line.
2. Set "Sound/Output plugin" to "ALSA output plugin", set "Output device" to something like "HDA Intel PCH, ALC 1220 Analog Direct hardware device without any conversions" (Or something alike, according to the correct audio hardware installed on your computer.).
3. Attempt to play a song.

OBSERVED RESULT
Command line output error message: 
"could not open audio device (Device or resource busy)", and no sound is played.
Possible additional error messages: 
"ALSA lib pcm_dmix.c:1108:(snd_pcm_dmix_open) unable to open slave"
After manually killing plasmashell (with "killall plasmashell"), music playback using the same output setting proceeds normally as expected.


EXPECTED RESULT
Audio playback proceeds without problem.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Kubuntu 19.04
(available in About System)
KDE Plasma Version: 5.15.4
KDE Frameworks Version: 5.56.0
Qt Version: 5.12.2

ADDITIONAL INFORMATION
Under Audio Volume setting in KDE (Settings/Multimedia/Audio Volume), under "Applications" tab, two applications can be seen in playback group, which disappears after "killall plasmashell", they are both named "plasmashell: Playback Stream". They appear even when no audio is played or heard. After manually killing plasmashell with the method above, if restart plasmashell, these two applications in audio setting immediately re-appear.
Comment 1 flighter007 2019-08-13 23:51:18 UTC
Just discovered this is actually caused by a customization script I wrote myself, and has nothing to do with the official KDE release, marked as not a bug.