summaryrefslogtreecommitdiff
path: root/scripts/_dump_latency.lua
blob: 583f2ca25444c97f0f52da97f25cd1ff1db80a41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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