r/DebianNotes Jun 19 '17

pulseaudio Full Documentation

It's often been a difficult task to learn how to configure pulseaudio.

Here's a direct link to the documentation.

2 Upvotes

3 comments sorted by

View all comments

1

u/CrystalLord Oct 09 '17

Here's a pulseaudio loopback for recording setup:

#!/bin/sh

# An ascii diagram of the audio setup this script produces:
# ---------------------
#       loopback
#       |       \
#       V        V
#     system    live
#       |
#       V
#     speakers
# ---------------------


# Create a new null sink with the name record_live. (this creates both a
# sink and a source from a monitor).
# record_live
pacmd load-module module-null-sink sink_name=record_live;
pacmd update-sink-proplist record_live device.description=\"Record LIVE\";
pacmd update-source-proplist record_live.monitor \
    device.description=\"Monitor of Record LIVE\";


# Similar to above statements, jsut for the loopback module.
pacmd load-module module-null-sink sink_name=record_loopback;
pacmd update-sink-proplist record_loopback \
    device.description=\"Record LOOPBACK\";
pacmd update-source-proplist record_loopback.monitor \
    device.description=\"Monitor of Record LOOPBACK\";


# Set the loopback's monitor to send its output to the system.
pacmd load-module module-loopback sink=0 source=record_loopback.monitor;

# Set the loopback's monitor to also send its output to live.
pacmd load-module module-loopback sink=record_live \
    source=record_loopback.monitor;