X-Git-Url: https://git.sesse.net/?p=nageru;a=blobdiff_plain;f=nageru%2Fsimple.lua;h=5444a200be9787c0e8c1f62269dcf6f0d7ccfe45;hp=8d5b3e673c1266a788d8eea043a337411a99b9bb;hb=9f5622b1cb36a07b5b717ab5c4cbd938a550c7c3;hpb=b7398dd7960ddf07f03b9a9ebc669d29141c09d0 diff --git a/nageru/simple.lua b/nageru/simple.lua index 8d5b3e6..5444a20 100644 --- a/nageru/simple.lua +++ b/nageru/simple.lua @@ -25,14 +25,8 @@ local input = scene:add_input() local wb_effect = scene:add_effect(WhiteBalanceEffect.new()) scene:finalize() --- 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 2 -end - -- Set some global state. +Nageru.set_num_channels(2) -- Can only be called at the start of the program. Nageru.set_channel_name(2, "First input") Nageru.set_channel_name(3, "Second input")