13
0

a-amp: special case empty pin-mapping mode

This commit is contained in:
Robin Gareus 2020-07-27 22:03:53 +02:00
parent 60062e6b43
commit 591292da0f
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -44,6 +44,7 @@ function dsp_runmap (bufs, in_map, out_map, n_samples, offset)
local ctrl = CtrlPorts:array() -- get control port array
local target_gain = ARDOUR.DSP.dB_to_coefficient (ctrl[1]) -- 10 ^ (0.05 * ctrl[1])
local current_gain = cur_gain -- start with the same for all channels
cur_gain = target_gain -- use target gain if no channel is mapped.
for c = 1, n_audio do
local ob = out_map:get (ARDOUR.DataType ("audio"), c - 1); -- get id of mapped output buffer for given cannel