Virtual Surround clipping
- PipeWire version (
pipewire --version
): 0.3.48 - Distribution and distribution version (
PRETTY_NAME
from/etc/os-release
): Arch Linux - Desktop Environment: i3
- Kernel version (
uname -r
): 5.16.16-zen1-1-zen
Description of Problem:
I've set up virtual surround with the irc54 HRIR from HeSuVi as per the wiki entry. Without turning down the volume of the Virtual Surround Sink (e.g. through Pavucontrol), there are some sounds that will clip on my output device when they otherwise wouldn't without virtual surround. HeSuVi has a button to calculate the amount of attenuation needed to avoid this kind of clipping, so maybe the pipewire virtual surround should do something similar?
How Reproducible:
Fully and deterministically.
Steps to Reproduce:
- Set up virtual surround with HeSuVi's irc54 HRIR according to the wiki.
- Ensure the Virtual Surround Sink and output device are set to 0.00 dB (e.g. in Pavucontrol).
- Play some classical guitar videos on YouTube and listen for clipping.
- Fix by lowering the volume on the Virtual Surround Sink (to approximately the level suggested by HeSuVi).
Actual Results:
Distortion due to clipping.
Expected Results:
The virtual surround module should calculate and apply an automatic attenuation so that 0.00 dB on both the Virtual Surround Sink and output device should not result in clipping?