Playback pauses when changing pulseaudio's default sink
-
Hello @ all,
i'm working on an equalizer app for UT (https://github.com/bigbrotherisstillwatching/utEqualizer). I recently updated to Noble and now playback of e.g. the music-player pauses when i deactivate the equalizer by setting the default sink back to
sink.primary_output. This does not happen, when activating the equalizer by setting the default sink to the createdequalizer-sink, playback just continues.Does anyone know, what the problem is and IF or HOW i can make it work like before on Focal (?); because it didn't happen there. Is this because of changes in pulseaudio or media-hub or a bug or something else?
Help appreciated!
Greetings bbiw
-
K Keneda moved this topic from Fairphone 4 on
-
K Keneda marked this topic as a question on
-
When creating a null sink with e.g.:
pactl load-module module-null-sink sink_name=equalizerand changing the default sink to this sink with:pacmd set-default-sink equalizermusic keeps on playing. But when setting back to the standard sink with:pacmd set-default-sink sink.primary_outputthe music player pauses and themedia-hublog says:media-hub: Pausing Player with key: 1, resuming after phone call? no. -
@bbiw I think it's feature for when you listen to music through external headphones and you disconnect them to stop playing music. It also happens on Android.
-
Ok, this seems to be a new feature of the 24.04-1.0 release. This seems to be desired by others, but hinders function of my equalizer app. An option to disable/enable this behavior in the system settings would be nice.
Interestingly this does not happen, when moving the sink inputs with e.g.:
pactl list short sink-inputs | awk '{print $1}' | xargs -I {} pacmd move-sink-input {} equalizerand back withpactl list short sink-inputs | awk '{print $1}' | xargs -I {} pacmd move-sink-input {} sink.primary_output.But to implement this function into my app and consider all the different eventualities will be very complicated, i think. Changing the default sink is much easier.