diff options
author | Robin Gareus <robin@gareus.org> | 2020-02-23 20:48:02 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-02-23 20:48:02 +0100 |
commit | 180843f9bd28b191c7404245ba0a121107992511 (patch) | |
tree | c60312dc09f76c2f55ba2383245c427e15c38dea /scripts/s_portengine.lua | |
parent | bf649cd68ad46c34a656700aa6cb89416d648c64 (diff) |
Also move Lua scripts to share subfolder
Diffstat (limited to 'scripts/s_portengine.lua')
-rw-r--r-- | scripts/s_portengine.lua | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/scripts/s_portengine.lua b/scripts/s_portengine.lua deleted file mode 100644 index ebca9ff696..0000000000 --- a/scripts/s_portengine.lua +++ /dev/null @@ -1,35 +0,0 @@ -ardour { ["type"] = "Snippet", name = "portengine" } -function factory () return function () - - local a = Session:engine() - print ("----- Port objects from Ardour's engine ----"); - _, t = a:get_ports (ARDOUR.DataType("audio"), ARDOUR.PortList()) - -- table 't' holds argument references. t[2] is the PortList - for p in t[2]:iter() do - local lp = p:get_connected_latency_range (ARDOUR.LatencyRange(), true) - local lc = p:get_connected_latency_range (ARDOUR.LatencyRange(), false) - print (p:name(), " -- Play lat.", lp[1].min, lp[1].max, "Capt lat.", lc[1].min, lc[1].max) - end - - print ("----- Port names queries from the backend ----"); - _, t = a:get_backend_ports ("", ARDOUR.DataType("audio"), 0, C.StringVector()) - -- table 't' holds argument references. t[4] is the StringVector - for n in t[4]:iter() do - print (n) - end - - print ("----- Connections from the backend ----"); - _, t = a:get_backend_ports ("", ARDOUR.DataType("audio"), ARDOUR.PortFlags.IsOutput, C.StringVector()) - for n in t[4]:iter() do - local printed_name = false; - local _, ct = a:get_connections (n, C.StringVector()) - for c in ct[2]:iter() do - if (not printed_name) then - printed_name = true; - print (n) - end - print (" ->", c) - end - end - -end end |