From c5162dbb45e66e7fd25430c9417a8e6a6b78080c Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 16 Nov 2024 18:07:01 +0100 Subject: Only show app audio option if using pipewire --- include/GsrInfo.hpp | 1 + include/gui/SettingsPage.hpp | 3 +++ 2 files changed, 4 insertions(+) (limited to 'include') 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; -- cgit v1.2.3