Fix caching gain coefficient for monitor gain
This commit is contained in:
parent
d91374d0db
commit
476856a42c
@ -56,7 +56,7 @@ MonitorReturn::run (BufferSet& bufs, samplepos_t start_sample, samplepos_t end_s
|
|||||||
|
|
||||||
uint32_t nch = bufs.count().n_audio ();
|
uint32_t nch = bufs.count().n_audio ();
|
||||||
if (_nch != nch) {
|
if (_nch != nch) {
|
||||||
_nch = _nch;
|
_nch = nch;
|
||||||
_gain = nch > 0 ? (1.f / sqrtf (nch)) : 1.f;
|
_gain = nch > 0 ? (1.f / sqrtf (nch)) : 1.f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user