return 2
end
--- API ENTRY POINT
--- Returns the name for each additional channel (starting from 2).
--- Called at the start of the program, and then each frame for live
--- channels in case they change resolution.
-function channel_name(channel)
- if channel == 2 then
- return "First input"
- elseif channel == 3 then
- return "Second input"
- end
-end
+-- Set some global state.
+Nageru.set_channel_name(2, "First input")
+Nageru.set_channel_name(3, "Second input")
-- API ENTRY POINT
-- Returns, given a channel number, which signal it corresponds to (starting from 0).