X-Git-Url: https://git.sesse.net/?p=nageru;a=blobdiff_plain;f=nageru%2Ftheme.lua;h=c524d566deb1a2ddf057ad5a0b6f25265f97e6a5;hp=c762a3f6d82ce1fafe1995d3f1de7ca988a2ab40;hb=9f5622b1cb36a07b5b717ab5c4cbd938a550c7c3;hpb=b7398dd7960ddf07f03b9a9ebc669d29141c09d0 diff --git a/nageru/theme.lua b/nageru/theme.lua index c762a3f..c524d56 100644 --- a/nageru/theme.lua +++ b/nageru/theme.lua @@ -111,16 +111,10 @@ static_scene:add_input(static_image) -- Note: Locks this input to images only. static_scene:finalize() -- Set some global state. +Nageru.set_num_channels(4) -- Can only be called at the start of the program. Nageru.set_channel_name(SBS_SIGNAL_NUM + 2, "Side-by-side") Nageru.set_channel_name(STATIC_SIGNAL_NUM + 2, "Static picture") --- API ENTRY POINT --- Returns the number of outputs in addition to the live (0) and preview (1). --- Called only once, at the start of the program. -function num_channels() - return 4 -end - function is_plain_signal(num) return num == INPUT0_SIGNAL_NUM or num == INPUT1_SIGNAL_NUM end