13
0

Update split-benchmark script with new transport API

This commit is contained in:
Robin Gareus 2021-05-07 20:52:03 +02:00
parent 49e1380417
commit 11719144b3
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -20,9 +20,9 @@ ARDOUR.LuaAPI.usleep (100000)
s:goto_start() s:goto_start()
s:maybe_enable_record() s:maybe_enable_record()
s:request_roll (4) s:request_roll (ARDOUR.TransportRequestSource.TRS_UI)
ARDOUR.LuaAPI.usleep (1000000 * reclen) ARDOUR.LuaAPI.usleep (1000000 * reclen)
s:request_stop (false, false, 4); s:request_stop (false, false, ARDOUR.TransportRequestSource.TRS_UI);
for t in s:get_tracks():iter() do for t in s:get_tracks():iter() do
t:rec_enable_control():set_value(0, PBD.GroupControlDisposition.UseGroup) t:rec_enable_control():set_value(0, PBD.GroupControlDisposition.UseGroup)
@ -75,7 +75,7 @@ for x = 2, cnt do
end end
local t_end = ARDOUR.LuaAPI.monotonic_time () local t_end = ARDOUR.LuaAPI.monotonic_time ()
Session:request_locate((playhead + stepsize * n_steps), false, 5) Session:request_locate((playhead + stepsize * n_steps), ARDOUR.LocateTransportDisposition.MustStop, ARDOUR.TransportRequestSource.TRS_UI)
print (count_regions (), (t_end - t_start) / 1000 / n_steps) print (count_regions (), (t_end - t_start) / 1000 / n_steps)
collectgarbage (); collectgarbage ();
ARDOUR.LuaAPI.usleep(500000) ARDOUR.LuaAPI.usleep(500000)