]> git.sesse.net Git - nageru/blobdiff - nageru/theme.lua
Make it possible to set number of channels imperatively instead of using a callback.
[nageru] / nageru / theme.lua
index c762a3f6d82ce1fafe1995d3f1de7ca988a2ab40..c524d566deb1a2ddf057ad5a0b6f25265f97e6a5 100644 (file)
@@ -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