2021-09-01 12:08:59 +00:00
|
|
|
---
|
|
|
|
author: Alvie Rahman
|
|
|
|
date: \today
|
|
|
|
title: Pulseaudio
|
2022-03-02 01:43:54 +00:00
|
|
|
tags:
|
|
|
|
- pulseaudio
|
|
|
|
- linux
|
|
|
|
- audio
|
|
|
|
- mixing
|
|
|
|
- microphone
|
|
|
|
- sink
|
|
|
|
uuid: 4e251354-9afb-49fd-abd9-fedc9b280a25
|
2021-09-01 12:08:59 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
# Collect and Mix Sound Input From Different Sources {#paMixer}
|
|
|
|
|
|
|
|
## Create Mixer {#createMixer}
|
|
|
|
|
|
|
|
From <https://askubuntu.com/a/870596>:
|
|
|
|
|
|
|
|
> [...]
|
|
|
|
>
|
|
|
|
> pactl load-module module-null-sink sink_name=inputs
|
|
|
|
>
|
|
|
|
> [...] please repeat this for [every] input you want to mix [...]
|
|
|
|
>
|
|
|
|
> pactl load-module module-loopback sink=inputs
|
|
|
|
>
|
|
|
|
> Now you will have to connect this new "loopback" channels to the device you intend to record from.
|
|
|
|
> You can do this using "pavucontrol" (install it if missing), open the "Recording" tab, select
|
|
|
|
> "Virtual Streams" from the bottom selector and then make sure you connect a different input to
|
|
|
|
> each different loopback.
|
|
|
|
> [...]
|
|
|
|
|
|
|
|
The number returned by each command is the module id.
|
|
|
|
You may want to keep it if you want to [delete them individually](#destroyMixerSpecific).
|
|
|
|
|
|
|
|
## Destroy Mixer {#destroyMixer}
|
|
|
|
|
|
|
|
### Destroy _all_ Loopback and Null-Sink Modules {#destroyMixerAll}
|
|
|
|
|
|
|
|
From <https://www.pclinuxos.com/forum/index.php/topic,119695.msg1159936.html#msg1159936>:
|
|
|
|
|
|
|
|
>
|
|
|
|
> pactl unload-module module-loopback
|
|
|
|
> pactl unload-module module-null-sink
|
|
|
|
>
|
|
|
|
|
|
|
|
This will unload _all_ loopback and null-sink modules.
|
|
|
|
|
2021-12-26 22:34:57 +00:00
|
|
|
### Destroy Specific Modules {#destroyMixerSpecific}
|
2021-09-01 12:08:59 +00:00
|
|
|
|
|
|
|
>
|
|
|
|
> pactl unload-module <module number>
|
|
|
|
>
|