Add Lua script to print signal latencies
This commit is contained in:
parent
48d11000e5
commit
07de1144c6
18
scripts/_dump_latency.lua
Normal file
18
scripts/_dump_latency.lua
Normal file
@ -0,0 +1,18 @@
|
||||
ardour { ["type"] = "Snippet", name = "Dump Latency",
|
||||
license = "MIT",
|
||||
author = "Ardour Team",
|
||||
}
|
||||
|
||||
function factory () return function ()
|
||||
print (" -- Session --")
|
||||
print ("Worst Output Latency: ", Session:worst_output_latency ())
|
||||
print ("Worst Input Latency: ", Session:worst_input_latency ())
|
||||
print ("Worst Track Latency: ", Session:worst_track_latency ())
|
||||
print ("Worst Track Roll Delay:", Session:worst_track_roll_delay ())
|
||||
print ("Worst Playback Latency:", Session:worst_playback_latency ())
|
||||
print (" -- Tracks --")
|
||||
for t in Session:get_tracks ():iter () do
|
||||
print (string.format ("%-24s roll-delay: %4d proc: %4d io: %4d",
|
||||
t:name(), t:initial_delay (), t:signal_latency (), t:output():latency()))
|
||||
end
|
||||
end end
|
Loading…
Reference in New Issue
Block a user