Add option to check / set audio monitoring of sources

This commit is contained in:
WarmUpTill
2022-12-05 17:21:40 +01:00
committed by WarmUpTill
parent 03854376ef
commit 0ce9c515af
11 changed files with 97 additions and 9 deletions

View File

@@ -824,6 +824,14 @@ void populateProfileSelection(QComboBox *box)
box->setCurrentIndex(0);
}
void populateMonitorTypeSelection(QComboBox *list)
{
list->addItem(obs_module_text("AdvSceneSwitcher.audio.monitor.none"));
list->addItem(
obs_module_text("AdvSceneSwitcher.audio.monitor.monitorOnly"));
list->addItem(obs_module_text("AdvSceneSwitcher.audio.monitor.both"));
}
bool windowPosValid(QPoint pos)
{
return !!QGuiApplication::screenAt(pos);

View File

@@ -81,6 +81,7 @@ void populateFilterSelection(QComboBox *list,
OBSWeakSource weakSource = nullptr);
void populateSourceGroupSelection(QComboBox *list);
void populateProfileSelection(QComboBox *list);
void populateMonitorTypeSelection(QComboBox *list);
bool windowPosValid(QPoint pos);
bool doubleEquals(double left, double right, double epsilon);
void setButtonIcon(QPushButton *button, const char *path);