13
0

Fix caching gain coefficient for monitor gain

This commit is contained in:
Robin Gareus 2021-03-17 17:55:59 +01:00
parent d91374d0db
commit 476856a42c
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -56,7 +56,7 @@ MonitorReturn::run (BufferSet& bufs, samplepos_t start_sample, samplepos_t end_s
uint32_t nch = bufs.count().n_audio ();
if (_nch != nch) {
_nch = _nch;
_nch = nch;
_gain = nch > 0 ? (1.f / sqrtf (nch)) : 1.f;
}