X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=nageru%2Ftheme.h;h=024df7a378c2ba50fb1a054068fa8e39087667d4;hb=2e5386ddae01a50ff36a6cda1e73a4c180f6e8d4;hp=507dc01828cafb3fe2524f8187b9f56a9f279e5e;hpb=4df45e479ddbc8e2247be8aab7f2bab5ddaa1b74;p=nageru diff --git a/nageru/theme.h b/nageru/theme.h index 507dc01..024df7a 100644 --- a/nageru/theme.h +++ b/nageru/theme.h @@ -85,7 +85,7 @@ struct InputStateInfo { class Theme { public: - Theme(const std::string &filename, const std::vector &search_dirs, movit::ResourcePool *resource_pool, unsigned num_cards); + Theme(const std::string &filename, const std::vector &search_dirs, movit::ResourcePool *resource_pool); ~Theme(); struct Chain { @@ -192,6 +192,11 @@ public: std::string format_status_line(const std::string &disk_space_left_text, double file_length_seconds); + // Signal that the given card is going away and will not be replaced + // with a fake capture card, so remove all connections to it so that + // they don't automatically come back on the next frame. + void remove_card(unsigned card_index); + private: void register_globals(); void register_class(const char *class_name, const luaL_Reg *funcs, EffectType effect_type = NO_EFFECT_TYPE); @@ -206,7 +211,6 @@ private: const InputState *input_state = nullptr; // Protected by . Only set temporarily, during chain setup. movit::ResourcePool *resource_pool; int num_channels = -1; - unsigned num_cards; bool startup_finished = false; std::mutex map_m;