mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-23 23:17:46 +01:00
allow Lua session scripts to inject [immediate] RT-events
This commit is contained in:
parent
83c964cfd4
commit
2ed145cfd4
1 changed files with 8 additions and 2 deletions
|
|
@ -359,8 +359,14 @@ Session::process_with_events (pframes_t nframes)
|
|||
|
||||
if (events.empty() || next_event == events.end()) {
|
||||
try_run_lua (nframes); // also during export ?? ->move to process_without_events()
|
||||
process_without_events (nframes);
|
||||
return;
|
||||
/* lua scripts may inject events */
|
||||
while (_n_lua_scripts > 0 && pending_events.read (&ev, 1) == 1) {
|
||||
merge_event (ev);
|
||||
}
|
||||
if (events.empty() || next_event == events.end()) {
|
||||
process_without_events (nframes);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (_transport_speed == 1.0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue