aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-11-16 18:07:01 +0100
committerdec05eba <dec05eba@protonmail.com>2024-11-16 18:07:01 +0100
commitc5162dbb45e66e7fd25430c9417a8e6a6b78080c (patch)
treeaa83462b1b15c2b9930ea7342f7af7d0717d4115 /include
parente0ddfa82dd585fe33cb5dc397ad418f336c56724 (diff)
Only show app audio option if using pipewire
Diffstat (limited to 'include')
-rw-r--r--include/GsrInfo.hpp1
-rw-r--r--include/gui/SettingsPage.hpp3
2 files changed, 4 insertions, 0 deletions
diff --git a/include/GsrInfo.hpp b/include/GsrInfo.hpp
index c3da6d7..cd6292c 100644
--- a/include/GsrInfo.hpp
+++ b/include/GsrInfo.hpp
@@ -40,6 +40,7 @@ namespace gsr {
struct SystemInfo {
DisplayServer display_server = DisplayServer::UNKNOWN;
+ bool supports_app_audio = false;
};
enum class GpuVendor {
diff --git a/include/gui/SettingsPage.hpp b/include/gui/SettingsPage.hpp
index 6c8a5cb..019de80 100644
--- a/include/gui/SettingsPage.hpp
+++ b/include/gui/SettingsPage.hpp
@@ -15,6 +15,7 @@ namespace gsr {
class PageStack;
class ScrollablePage;
class Label;
+ class LineSeparator;
class SettingsPage : public StaticPage {
public:
@@ -146,7 +147,9 @@ namespace gsr {
List *video_bitrate_list_ptr = nullptr;
List *audio_devices_list_ptr = nullptr;
List *audio_devices_section_list_ptr = nullptr;
+ Label *audio_devices_label_ptr = nullptr;
List *application_audio_section_list_ptr = nullptr;
+ LineSeparator *audio_type_line_sep_ptr = nullptr;
CheckBox *merge_audio_tracks_checkbox_ptr = nullptr;
RadioButton *audio_type_radio_button_ptr = nullptr;
List *application_audio_list_ptr = nullptr;