Dimzon, I will send you a code for a limiter constructed from a sine glued with a linear section. It also has a limiting
knee that can be adjusted. Morover, this always limits to [-1, 1] range and up to some signal level is linear (no harmonic distortion).

I'm not a expert in DRC, but I think if DRC algorithms use parameters like attack and dekay is for good reasons.

A instant volume conversión with simple math formulas produce distort output like you can see in this image.

With a frequency analysis you can see the audible overtones, not present using more sophisticated algorithms:Frequency Analysis.

For me the DRC is only useful with ac3 or dts sources, and this work ok with your modified NicAaudio.dll. For others uses the compand Sox function still work better than this AudioLimiters.

Tebasune51 is right. The limiter (or also called soft clipper) is usually used to make the hard clipping effect more listenable. It is a useful tool, so it is good to have it. It also can be viewed as the simplest form of compressor.
---------------------------
However, for compressing the amplitude of the signal, usually a dynamic compressor is used (with the attack phase, release phase, compression ratio, and other parameters).
---------------------------
Dimzon, I have implemented in the past a very high quality (very low harmonic distortions) compressor for some pro-audio applications, and the code belongs to me (personally). I will have to just clean it a bit and will provide you with it. So you will be able to use it as open source, or in whaterver way you prefer. So I will get back with this to you soon.

@3dsnar, @tebasuna51http://en.wikipedia.org/wiki/Amplitude_compression
I'm just trying to reproduce BeSweet's custom boost modes (LigH/Tera/DSPGuru) - there are no attac/decay parameters for it, seems like they are just limiters. Custom boost modes + additional AC3 DRC is last to cover all BeSweet functionality...

I'm just trying to reproduce BeSweet's custom boost modes (LigH/Tera/DSPGuru) - there are no attac/decay parameters for it, seems like they are just limiters. Custom boost modes + additional AC3 DRC is last to cover all BeSweet functionality...