mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 08:14:58 +01:00
use new Session transport API calls in GUI
This commit is contained in:
parent
0bccc4bffd
commit
52b7e68102
9 changed files with 21 additions and 23 deletions
|
|
@ -29,7 +29,7 @@ function factory ()
|
|||
-- event at 09:32:00 UTC (here: rec-stop)
|
||||
if (now >= hhmmss (09, 32, 00) and _last_time < hhmmss (09, 32, 00)) then
|
||||
Session:disable_record (false, false)
|
||||
Session:request_transport_speed (0.0, true, ARDOUR.TransportRequestSource.TRS_UI)
|
||||
Session:request_stop (false, false, TRS_UI);
|
||||
end
|
||||
|
||||
_last_time = now
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ function factory (params)
|
|||
end
|
||||
a = a + n_samples
|
||||
if (a > timeout * Session:sample_rate()) then
|
||||
Session:request_transport_speed(0.0, true, ARDOUR.TransportRequestSource.TRS_Engine)
|
||||
Session:request_stop (false, false, TRS_UI);
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue