Hi all,
I've put a lot of work into this patch and it's ready for review. I
sure would appreciate it if one of the devs could look it over for
inclusion.
Summing up: this patch adds a "Limiter Preamp" menu item to the sound
settings menu on SWCODEC targets. Any selection above 0db amplifies the
signal up to 12db and then limits peaks to eliminate resultant
clipping. This anti-clipping limiter looks ahead a few milliseconds and
smoothly reduces gain so that when the clipping peak occurs, it's no
longer clipped. Then the gain is smoothly restored over about a 100ms
period to the original level. This has the effect of raising the
amplitude of quieter sections without clipping the louder sections.
This is useful for listening to dynamic material in noisy environments.