Skip to content

Commit 15bac8f

Browse files
Mikhail Swiftwerman
authored andcommitted
Update documentation with adjustment to prevent loopback switching
source/sink Today after a system update I noticed my denoised microphone source wasn't outputting any sound. This was a bit perplexing since I hadn't recompiled or changed my pulse configuration. I tried using the NoiseTorch project and found that it worked just fine, so my pulse audio configuration seemed to be the cause. After a bit of digging through pulseaudio's output, I found a line of interest: `I: [pulseaudio] source.c: The source output 0 "(null)" is moving to denoised due to change of the default source.` I found that in my case source output 0 was the module-loopback. The source output changing sources broke the module chain and my actual source was no longer being chained to the noise suppression plugin. I found the `source_dont_move` and `sink_dont_move` options for the loopback module here: https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/Modules/#module-loopback. These seem to be desirable options for this setup since we want the sink and source in the loopback module to stay consistent.
1 parent 4ff0989 commit 15bac8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Then, create the new device using:
3939
```sh
4040
pacmd load-module module-null-sink sink_name=mic_denoised_out rate=48000
4141
pacmd load-module module-ladspa-sink sink_name=mic_raw_in sink_master=mic_denoised_out label=noise_suppressor_mono plugin=/path/to/librnnoise_ladspa.so control=50
42-
pacmd load-module module-loopback source=<your_mic_name> sink=mic_raw_in channels=1
42+
pacmd load-module module-loopback source=<your_mic_name> sink=mic_raw_in channels=1 source_dont_move=true sink_dont_move=true
4343
```
4444

4545
This needs to be executed every time PulseAudio is launched.
@@ -50,7 +50,7 @@ You can automate this by creating file in `~/.config/pulse/default.pa` with the
5050
5151
load-module module-null-sink sink_name=mic_denoised_out rate=48000
5252
load-module module-ladspa-sink sink_name=mic_raw_in sink_master=mic_denoised_out label=noise_suppressor_mono plugin=/path/to/librnnoise_ladspa.so control=50
53-
load-module module-loopback source=your_mic_name sink=mic_raw_in channels=1
53+
load-module module-loopback source=your_mic_name sink=mic_raw_in channels=1 source_dont_move=true sink_dont_move=true
5454
5555
set-default-source mic_denoised_out.monitor
5656
```

0 commit comments

Comments
 (0)