Fix ExportFormatSpecification copy-c'tor
[ardour.git] / scripts / _toggle_monitor_section.lua
1 ardour { ["type"] = "Snippet", name = "Toggle Monitor Section" }
2
3 function factory () return function () 
4         if Session:monitor_out():isnil() then
5                 Session:add_monitor_section ()
6                 ARDOUR.config():set_use_monitor_bus (true)
7         else
8                 Session:remove_monitor_section ()
9                 ARDOUR.config():set_use_monitor_bus (false)
10                 collectgarbage ()
11         end
12 end end