add no match delay option (#78)

This commit is contained in:
WarmUpTill
2020-12-06 14:10:17 +01:00
committed by GitHub
parent 25f28b9796
commit 9711390aac
5 changed files with 53 additions and 10 deletions

View File

@@ -63,6 +63,8 @@ struct SwitcherData {
OBSWeakSource lastRandomScene;
OBSWeakSource nonMatchingScene;
NoMatch switchIfNotMatching = NO_SWITCH;
double noMatchDelay;
double noMatchCount = 0;
StartupBehavior startupBehavior = PERSIST;
std::deque<WindowSwitch> windowSwitches;
@@ -183,6 +185,8 @@ struct SwitcherData {
OBSWeakSource &transition);
void checkAudioSwitch(bool &match, OBSWeakSource &scene,
OBSWeakSource &transition);
void checkNoMatchSwitch(bool &match, OBSWeakSource &scene,
OBSWeakSource &transition, int &sleep);
void saveWindowTitleSwitches(obs_data_t *obj);
void saveScreenRegionSwitches(obs_data_t *obj);