UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Playback pauses when changing pulseaudio's default sink

    Scheduled Pinned Locked Moved Unsolved App Development
    5 Posts 2 Posters 544 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B Offline
      bbiw
      last edited by bbiw

      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 created equalizer-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

      1 Reply Last reply Reply Quote 1
      • KenedaK Keneda moved this topic from Fairphone 4 on
      • KenedaK Keneda marked this topic as a question on
      • B Offline
        bbiw
        last edited by

        When creating a null sink with e.g.: pactl load-module module-null-sink sink_name=equalizer and changing the default sink to this sink with: pacmd set-default-sink equalizer music keeps on playing. But when setting back to the standard sink with: pacmd set-default-sink sink.primary_output the music player pauses and the media-hub log says: media-hub: Pausing Player with key: 1, resuming after phone call? no.

        ikozI 1 Reply Last reply Reply Quote 0
        • ikozI Offline
          ikoz @bbiw
          last edited by

          @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.

          May the source be with you

          1 Reply Last reply Reply Quote 0
          • B Offline
            bbiw
            last edited by

            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 {} equalizer and back with pactl 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.

            1 Reply Last reply Reply Quote 0
            • B Offline
              bbiw
              last edited by bbiw

              This does not happen when streaming over bluetooth.

              1 Reply Last reply Reply Quote 0
              • B bbiw has marked this topic as solved on
              • B bbiw has marked this topic as unsolved on

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • First post
                Last post