X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=theme.lua;h=243b352670182c7bbd3c56dffe761bf32d5e268f;hb=f245cb0d0453e0e8bd5c7d40720bd0a5b50454ee;hp=f561613aa88c33fd5dff538bd199122d7c425368;hpb=fb5360d92864760d70d8a69c8dd4a9e738bcc0f0;p=nageru diff --git a/theme.lua b/theme.lua index f561613..243b352 100644 --- a/theme.lua +++ b/theme.lua @@ -298,6 +298,21 @@ function channel_name(channel) end end +-- API ENTRY POINT +-- Returns, given a channel number, which signal it corresponds to (starting from 0). +-- Should return -1 if the channel does not correspond to a simple signal. +-- Called once for each channel, at the start of the program. +-- Will never be called for live (0) or preview (1). +function channel_signal(channel) + if channel == 2 then + return 0 + elseif channel == 3 then + return 1 + else + return -1 + end +end + -- API ENTRY POINT -- Returns if a given channel supports setting white balance (starting from 2). -- Called only once for each channel, at the start of the program.