Update scripts, monitor-section API change

This commit is contained in:
Robin Gareus 2019-03-01 16:46:08 +01:00
parent 1854a72b80
commit 9836304e3e
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 1 additions and 3 deletions

View File

@ -2,10 +2,8 @@ ardour { ["type"] = "Snippet", name = "Toggle Monitor Section" }
function factory () return function ()
if Session:monitor_out():isnil() then
Session:add_monitor_section ()
ARDOUR.config():set_use_monitor_bus (true)
else
Session:remove_monitor_section ()
ARDOUR.config():set_use_monitor_bus (false)
collectgarbage ()
end

View File

@ -49,7 +49,7 @@ function factory () return function ()
end
if rv['monitor'] then
Session:add_monitor_section ()
ARDOUR.config():set_use_monitor_bus (true)
end
ARDOUR.config():set_input_auto_connect (rv['ac_input'])