How to retrieve and select available audio outputs
-
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. -
@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