allow Lua session scripts to inject [immediate] RT-events
This commit is contained in:
@@ -359,8 +359,14 @@ Session::process_with_events (pframes_t nframes)
|
|||||||
|
|
||||||
if (events.empty() || next_event == events.end()) {
|
if (events.empty() || next_event == events.end()) {
|
||||||
try_run_lua (nframes); // also during export ?? ->move to process_without_events()
|
try_run_lua (nframes); // also during export ?? ->move to process_without_events()
|
||||||
process_without_events (nframes);
|
/* lua scripts may inject events */
|
||||||
return;
|
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) {
|
if (_transport_speed == 1.0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user