aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSalanto <62221668+Salanto@users.noreply.github.com>2022-07-30 18:42:55 +0200
committerGitHub <noreply@github.com>2022-07-30 18:42:55 +0200
commit4fa86c0174961be22e1996a472e908b36656083d (patch)
tree98f5adbfeb7a318482c69776527575284d3ef1b3 /include
parent7b88d4be954b415e069ee0d612e4df3793c61756 (diff)
Add option to disable music streaming. (#829)
* Add option to disable streamintg This one gets a unique message to prevent people forgetting they disable it and the wondering why streaming broke. * Fix code order * Fixes the music channel still playing audio when a new stream was blocked. * Update tooltip * Update tooltip to reflect the current way the feature works.
Diffstat (limited to 'include')
-rw-r--r--include/aoapplication.h3
-rw-r--r--include/aooptionsdialog.h2
2 files changed, 5 insertions, 0 deletions
diff --git a/include/aoapplication.h b/include/aoapplication.h
index 21c04b8..f1ba9d7 100644
--- a/include/aoapplication.h
+++ b/include/aoapplication.h
@@ -194,6 +194,9 @@ public:
// Returns true if stop music on objection is enabled in the config.ini
bool objection_stop_music();
+ // Returns true if streaming is enabled in the config.ini
+ bool is_streaming_disabled();
+
// Returns the value of default_music in config.ini
int get_default_music();
diff --git a/include/aooptionsdialog.h b/include/aooptionsdialog.h
index d78f8e9..daf1b35 100644
--- a/include/aooptionsdialog.h
+++ b/include/aooptionsdialog.h
@@ -145,6 +145,8 @@ private:
QCheckBox *ui_loopsfx_cb;
QLabel *ui_objectmusic_lbl;
QCheckBox *ui_objectmusic_cb;
+ QLabel *ui_disablestreams_lbl;
+ QCheckBox *ui_disablestreams_cb;
QDialogButtonBox *ui_settings_buttons;
QWidget *ui_casing_tab;