diff options
author | Chris Robinson <[email protected]> | 2017-04-26 18:38:09 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2017-04-26 18:38:09 -0700 |
commit | ca5c732261bfacdb4702fcc253b3ef0dad357a35 (patch) | |
tree | 9d9ff19e5bc80a3a5d44ba2c7a464b85097d37f1 /OpenAL32/Include | |
parent | 1754d54c18b58995718d2695151a945ee232b0f1 (diff) |
Implement a limiter on the device output
This reduces the output volume when the mixed samples extend outside of -1,+1,
to prevent excessive clipping. It can reduce the volume by -80dB in 50ms, and
increase it by +80dB in 1s (it will not go below -80dB or above 0dB).
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r-- | OpenAL32/Include/alMain.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index 174210fa..52c9465c 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -795,6 +795,8 @@ struct ALCdevice_struct ALsizei NumChannels; } RealOut; + ALfloat LimiterGain; + /* The average speaker distance as determined by the ambdec configuration * (or alternatively, by the NFC-HOA reference delay). Only used for NFC. */ |