ubuntu:sound:pulseaudio
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
ubuntu:sound:pulseaudio [2020/12/13 12:02] – peter | ubuntu:sound:pulseaudio [2020/12/13 12:09] (current) – peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Ubuntu - Sound - PulseAudio ====== | ====== Ubuntu - Sound - PulseAudio ====== | ||
- | Set default sound output card dynamically using PulseAudio. | + | [[Ubuntu: |
- | ---- | + | [[Ubuntu:Sound: |
- | + | ||
- | ===== Get list of Sources ===== | + | |
- | + | ||
- | <code bash> | + | |
- | pactl list short sources | + | |
- | </ | + | |
- | + | ||
- | returns: | + | |
- | + | ||
- | <code bash> | + | |
- | 1 alsa_output.pci-0000_0b_00.4.analog-stereo.monitor module-alsa-card.c s16le 2ch 48000Hz IDLE | + | |
- | 4 alsa_output.pci-0000_09_00.1.hdmi-stereo-extra1.monitor module-alsa-card.c s16le 2ch 44100Hz SUSPENDED | + | |
- | </ | + | |
- | + | ||
- | ---- | + | |
- | + | ||
- | ===== Get list of Sinks ===== | + | |
- | + | ||
- | <code bash> | + | |
- | pactl list short sinks | + | |
- | </ | + | |
- | + | ||
- | returns: | + | |
- | + | ||
- | <code bash> | + | |
- | 1 alsa_output.pci-0000_0b_00.4.analog-stereo module-alsa-card.c s16le 2ch 48000Hz RUNNING | + | |
- | 3 alsa_output.pci-0000_09_00.1.hdmi-stereo-extra1 module-alsa-card.c s16le 2ch 44100Hz SUSPENDED | + | |
- | </ | + | |
- | + | ||
- | ---- | + | |
- | + | ||
- | ---- | + | |
- | + | ||
- | ===== Set Defaults ===== | + | |
- | + | ||
- | <code bash> | + | |
- | pactl set-default-source alsa_output.pci-0000_0b_00.4.analog-stereo | + | |
- | pactl set-default-sink alsa_output.pci-0000_0b_00.4.analog-stereo | + | |
- | </ | + | |
ubuntu/sound/pulseaudio.1607860954.txt.gz · Last modified: 2020/12/13 12:02 by peter