@ -219,3 +234,72 @@ The second part called `Application-Loopback 1 Playback` is available under the
allows to switch the selection of the output device.
allows to switch the selection of the output device.
Also in the `Playback` tab `Application-Loopback 1 Sink` can be selected as an output for currently
Also in the `Playback` tab `Application-Loopback 1 Sink` can be selected as an output for currently
running applications which will loopback the sound to the selected output device.
running applications which will loopback the sound to the selected output device.
## Troubleshooting
This section will focus on errors and the fixing of errors of Pipewire.
### Fix Crackling
Crackling can occur in various situations.
There is a [post by rabcor](https://forum.manjaro.org/t/howto-troubleshoot-crackling-in-pipewire/82442) that features multiple possibilities to fix this.
This section will list a few of them.
Firstly suspend can be deactivated to try to fix crackling.
In `alsa-vm.conf` the `suspend_timeout_seconds` have to be set to `0` like the following lines
show.
This also shows the general structure but only the line starting with `session` is to be added.
```txt
monitor.alsa.rules = [
{
actions = {
update-props = {
session.suspend-timeout-seconds = 0
}
]
```
Another possibility for crackling to occur is when the allowed rates are mismatched.
In `pipewire.conf` locate the following line.
```txt
#default.clock.allowed-rates = [ 48000 ]
```
Change this line to look like the following.
```txt
default.clock.allowed-rates = [ 44100 48000 ]
```
A third possibility to fix crackling is by adjusting the alsa headroom.
In `alsa-vm.conf` the locate the following line.
```txt
api.alsa.headroom = 2048
```
Change it to look like the following line.
```txt
api.alsa.headroom = 0
```
If this doesn't work values like 2048, 512, 256, 128, 64, 32 can also be tried.
A fourth possibility to fix crackling is by adjusting the alsa period size.
In `alsa-vm.conf` the locate the following line.
```txt
api.alsa.period-size = 1024
```
Change it to look like the following line.
```txt
api.alsa.period-size = 256
```
If this doesn't work values like 2048, 512, 128, 64 can also be tried.