Bug 480573

Summary: Elisa always switches back to outputting to the audio output used when Elisa is initially launched when changing tracks.
Product: [Applications] Elisa Reporter: Ali <radicalite>
Component: generalAssignee: Matthieu Gallien <matthieu_gallien>
Status: CONFIRMED ---    
Severity: normal CC: batmansgehilfe, bovender, doug.hs, jf.mundox, kaleemsagard, mail, myjunkmailbox2801, robby.engelmann, seafiish, timaeos, xnarpy
Priority: NOR Keywords: qt6
Version First Reported In: 25.04.0   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Audio Volume Plasmoid when this bug occurs (excuse the Dualshock 4, I'm using it to pass audio through USB)
F39 QT6.6.0 Build of Elisa Switches Audio Output back to previous output

Description Ali 2024-01-30 23:35:58 UTC
Created attachment 165382 [details]
Audio Volume Plasmoid when this bug occurs (excuse the Dualshock 4, I'm using it to pass audio through USB)

SUMMARY
When there is more than one audio output, switching to a different one via the Audio Volume Plasmoid mid playback will output current playback to the selected audio output as expected, but when the next track plays/current track changes, Elisa only outputs to the audio output that was in use when Elisa was opened/before the audio output was switched.

STEPS TO REPRODUCE
1. Connect two audio outputs and select one via the Audio Volume Plasmoid
2. Open Elisa and play a track
3. Switch audio output mid playback
4. Change the currently playing track

OBSERVED RESULT
After the currently playing track changes, Elisa only outputs to the audio output that was in use when Elisa was launched.

EXPECTED RESULT
Elisa keeps playing audio to the currently selected audio output.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora Linux 40 KDE Plasma (Rawhide)
(available in About System)
KDE Plasma Version: 5.92.0 (Plasma 6.0 RC1)
KDE Frameworks Version: 5.248.0
Qt Version: 6.6.1

ADDITIONAL INFORMATION
This can also be visually seen in the Audio Volume Plasmoid, where you can see sound being output to an audio device that isn't selected.
Comment 1 Timothy Arnold 2024-02-02 16:45:08 UTC
Created attachment 165477 [details]
F39 QT6.6.0 Build of Elisa Switches Audio Output back to previous output

I'm able to replicate this bug on a QT6 master build of Elisa (24.04.70) on Fedora 39 using the procedure above

Using KDE Frameworks 6.0.0
Built against QT 6.6.0

It not only switches output during the switching of tracks but also when seeking on the current track. Attached screenshots shows audio playing on the previously selected output but not on the currently selected output
Comment 2 Daniel Hurtado 2024-04-11 13:52:31 UTC
I'm experiencing the same issue here on openSUSE Tumbleweed

Elisa: 24.02.01
QT: 6.6.3
KDE Plasma: 6.0.3
KDE Framerworks: 6.0.0
Comment 3 Robby Engelmann 2024-09-27 17:29:33 UTC
The same is true here using recent master git snapshot builds:
Operating System: openSUSE Tumbleweed 20240926
KDE Plasma Version: 6.1.90
KDE Frameworks Version: 6.7.0
Qt Version: 6.7.2
Kernel Version: 6.11.0-1-default (64-bit)
Graphics Platform: Wayland
Processors: 20 × 13th Gen Intel® Core™ i7-13700H
Memory: 62.5 GiB of RAM
Graphics Processor: Mesa Intel® Graphics
Manufacturer: TUXEDO
Product Name: TUXEDO InfinityBook Pro Gen8 (MK1)
Comment 4 Douglas Silva 2025-05-04 15:20:00 UTC
Reproducible on version 25.

Elisa: 25.04.0
Fedora Linux 42 (KDE Plasma Desktop Edition) (Wayland)
KDE Frameworks: 6.13.0
Qt: Using 6.9.0 and built against 6.9.0
Build ABI: x86_64-little_endian-lp64
Kernel: linux 6.14.4-300.fc42.x86_64
Comment 5 Talya 2025-05-06 15:17:57 UTC
*** Bug 503849 has been marked as a duplicate of this bug. ***
Comment 6 Talya 2025-05-06 15:36:43 UTC
first of all, this is also true for the latest version so i'm updating that in the bug parameters.
doing some more testing, this doesn't seem to just be an issue of switching output mid-song, but also of Elisa choosing the wrong output to begin with.
if headphones are plugged in before booting Elisa, that is the output that will be used. however when starting Elisa without any music in the queue and no sound coming out and then plugging in headphones, the built-in speakers will be selected as output, even when the global settings are headphones. even when during that stage (i.e. before playing the first song after starting) one switches the global setting to speakers and back to headphones, the output for Elisa is still the speakers.
after that the bug is as described by Ali. however this earlier behaviour means that anyone who plugs in/turns out their headphones after starting Elisa will likely encounter it, as they'll always have Elisa using the speakers, which is either solved by switching the global settings to speakers and back to headphones (which does not result in Ali's bug), or by switching Elisa specifically to headphones (which does).

SOFTWARE/OS VERSIONS
Elisa: 25.04.0

Operating System: Fedora Linux Asahi Remix 42
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.13.0
Qt Version: 6.9.0
Kernel Version: 6.14.4-400.asahi.fc42.aarch64+16k (64-bit)
Graphics Platform: Wayland
Product Name: Apple MacBook Pro (14-inch, M1 Pro, 2021)
Comment 7 Talya 2025-05-07 16:54:45 UTC
correction: even changing the global settings to be speakers then back to headphones doesn't fix this bug, it'll still return as soon as the song switches. so any time one connects a new output after starting Elisa this will happen, no exceptions.
Comment 8 Robby Engelmann 2025-05-07 17:10:22 UTC
I can confirm exactly the described behavior here (actually being present for months already):
Operating System: openSUSE Tumbleweed 20250506
KDE Plasma Version: 6.3.80
KDE Frameworks Version: 6.15.0
Qt Version: 6.9.0
Kernel Version: 6.14.4-1-default (64-bit)
Graphics Platform: Wayland
Processors: 20 × 13th Gen Intel® Core™ i7-13700H
Memory: 64 GiB of RAM (62.5 GiB usable)
Graphics Processor: Intel® Iris® Xe Graphics
Manufacturer: TUXEDO
Product Name: TUXEDO InfinityBook Pro Gen8 (MK1)
Comment 9 Talya 2025-05-23 19:53:42 UTC
turns out this also happens when going the other way - starting elisa with headphones connected, then unplugging, means Elisa keeps outputting to the headphones. however, since now you only have one actual audio source plugged in, you can't even switch the output in the audio applet, and you have to restart Elisa.
Comment 10 John Kizer 2025-05-27 04:13:00 UTC
*** Bug 504676 has been marked as a duplicate of this bug. ***
Comment 11 Fivel 2025-06-16 01:46:55 UTC
also seeing this issue on Fedora 42

KDE Plasma Version: 6.3.5
KDE Frameworks Version: 6.14.0
Qt Version: 6.9.1
Kernel Version: 6.14.9-300.fc42.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 7800X3D 8-Core Processor
Memory: 30.5 GiB of RAM
Graphics Processor 1: AMD Radeon RX 7800 XT
Graphics Processor 2: AMD Radeon Graphics
Manufacturer: Gigabyte Technology Co., Ltd.
Product Name: B650 GAMING X AX V2
Comment 12 Christian Ortega 2025-08-25 19:08:53 UTC
I can confirm that this issue still occurs on Elisa 25.08.0.

Operating System: Fedora Linux 42
KDE Plasma Version: 6.4.4
KDE Frameworks Version: 6.17.0
Qt Version: 6.9.1
Kernel Version: 6.15.10-200.fc42.x86_64 (64-bit)
Graphics Platform: Wayland