foobar2000:Components/Hard Clip DSP (foo_dsp_hardclip)
From Hydrogenaudio Knowledgebase
|Hard Clip DSP|
|Initial release||June 5, 2011|
|Stable release||1.0.2 (August 28, 2022)|
|License||Modified ISC license|
|View all components|
Clips peaks that would exceed digital fullscale when converted to integer PCM format.
The default DirectSound output method in foobar2000 sends samples in floating point format to the mixer on Vista and newer Windows versions. This provides highest performance and quality, but can have some side effects.
If the audio is too loud the mixer won't clip the signal but lowers its amplitude instead. This can cause noticeable volume reduction or even make the volume pump between loud and quiet.
Clipping the signal will prevent both issues and will provide output that matches most other players.