SIGN IN SIGN UP

osc.lua: always observe duration

Currently the duration observer is toggled in multiple places to not
call request_init unecessarily. It is much simpler to always observe it
and call request_init conditionally in the callback. This also allows
reusing the cached value throughout the OSC.

Note that dividing by 0 is not an error in Lua so there is no need to
check for both 0 and nil.
G
Guido Cella committed
3183ea9980520ec6f04f7c72c394be71559170b1
Parent: 9ce79bc
Committed by Kacper Michajłow <kasper93@gmail.com> on 4/25/2026, 10:20:33 PM