From 476856a42c50cb2539a7de15946576d6903b5f68 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 17 Mar 2021 17:55:59 +0100 Subject: [PATCH] Fix caching gain coefficient for monitor gain --- libs/ardour/monitor_return.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ardour/monitor_return.cc b/libs/ardour/monitor_return.cc index c2831d0316..fe883a3fc8 100644 --- a/libs/ardour/monitor_return.cc +++ b/libs/ardour/monitor_return.cc @@ -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; }