]> git.sesse.net Git - nageru/blobdiff - nageru/theme.h
Make it possible to set number of channels imperatively instead of using a callback.
[nageru] / nageru / theme.h
index 794542525e9e84f60f65679b63cab8d6ae85b469..34a8d29fffb141475f5705242b2d01898fa7b74a 100644 (file)
@@ -191,8 +191,9 @@ private:
        lua_State *L;  // Protected by <m>.
        const InputState *input_state = nullptr;  // Protected by <m>. Only set temporarily, during chain setup.
        movit::ResourcePool *resource_pool;
-       int num_channels;
+       int num_channels = -1;
        unsigned num_cards;
+       bool startup_finished = false;
 
        std::mutex map_m;
        std::map<int, int> signal_to_card_mapping;  // Protected by <map_m>.
@@ -223,6 +224,7 @@ private:
        friend class Scene;
        friend int ThemeMenu_set(lua_State *L);
        friend int Nageru_set_channel_name(lua_State *L);
+       friend int Nageru_set_num_channels(lua_State *L);
 };
 
 // LiveInputWrapper is a facade on top of an YCbCrInput, exposed to