Pulseaudio output switching shell script

Home Forums Tech Support Pulseaudio output switching shell script

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #67398
    strider
    Participant

    I’d like to write a bash script to toggle sound output on PulseAudio between built-in audio and Scarlett USB:
    For each process using Pulse, switch the currently used sound output and set default ouput to the one not currently being used.

    Anyone has hints on what I should start looking for?

    #75758
    linuxgnuru
    Participant

    https://freedesktop.org/software/pulseaudio/releases/

    but seriously, when i get back home I’ll give it a real go.

    #75759
    strider
    Participant

    Found how to set the default sink with

    Code:
    pacmd set-default-sink alsa_output.usb-Focusrite_Scarlett_Solo_USB-00.analog-stereo

    and

    Code:
    pacmd set-default-sink alsa_output.pci-0000_00_1b.0.analog-stereo

    Only thing left now is to be able to change the sound card for the running applications.

    #75760
    strider
    Participant

    http://askubuntu.com/questions/71863/ho … g-playback

    all needed info is here, I’ll post a link for the resulting script when it’s done.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.