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

    How to retrieve and select available audio outputs

    Scheduled Pinned Locked Moved App Development
    2 Posts 2 Posters 182 Views 1 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.
      • gwadoG Offline
        gwado
        last edited by

        I would like to find a solution to the problem of alarms that are triggered in the current default audio output.
        When headphones are connected to the smartphone, the alarm sound output remains the headphones and not the speakers.

        As a first step: do you know how to list the audio outputs, please?

        Next comes a very simple app to launch an alarm clock and select the audio output.
        It's more relevant to improve the official “clock” app, but I don't know if I have the minimum necessary skills.

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

          @gwado Ubuntu Touch uses PulseAudio, commands are the same as on other "normal" Linux distros.
          To list available outputs (sinks):

          pactl list sinks
          

          As the commands are the same as on Ubuntu desktop, you can search for how to do that in Ubuntu, e.g.: change default audio device, and change PulseAudio I/O output

          May the source be with you

          1 Reply Last reply Reply Quote 1
          • First post
            Last post