Update scripts to new request_locate() API

This commit is contained in:
Robin Gareus 2020-02-20 00:01:36 +01:00
parent 8d557dd56a
commit c509c94824
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
3 changed files with 3 additions and 3 deletions

View file

@ -48,7 +48,7 @@ function factory (params) return function ()
end
local t_end = ARDOUR.LuaAPI.monotonic_time ()
Session:request_locate((playhead + step * n_steps), false, 5)
Session:request_locate((playhead + step * n_steps), ARDOUR.LocateTransportDisposition.MustStop, ARDOUR.TransportRequestSource.TRS_UI)
print (count_regions (), (t_end - t_start) / 1000 / n_steps)
collectgarbage ();
ARDOUR.LuaAPI.usleep(500000)