From 520687cd3f48ee2ecb4a6d2890fb9c25939f1373 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 20 Nov 2024 20:17:09 +0100 Subject: Merge audio devices and application audio into one list --- include/Config.hpp | 2 - include/gui/SettingsPage.hpp | 39 +++--- include/gui/Widget.hpp | 2 + src/Config.cpp | 6 - src/Overlay.cpp | 60 +++++----- src/gui/SettingsPage.cpp | 280 +++++++++++++++++++------------------------ 6 files changed, 173 insertions(+), 216 deletions(-) diff --git a/include/Config.hpp b/include/Config.hpp index cfb64df..6044ab8 100644 --- a/include/Config.hpp +++ b/include/Config.hpp @@ -25,9 +25,7 @@ namespace gsr { bool merge_audio_tracks = true; bool application_audio_invert = false; bool change_video_resolution = false; - std::string audio_type_view = "audio_devices"; std::vector audio_tracks; - std::vector application_audio; std::string color_range = "limited"; std::string video_quality = "very_high"; std::string video_codec = "auto"; diff --git a/include/gui/SettingsPage.hpp b/include/gui/SettingsPage.hpp index 019de80..29f6c1a 100644 --- a/include/gui/SettingsPage.hpp +++ b/include/gui/SettingsPage.hpp @@ -29,7 +29,7 @@ namespace gsr { SettingsPage(const SettingsPage&) = delete; SettingsPage& operator=(const SettingsPage&) = delete; - void load(); + void load(const GsrInfo &gsr_info); void save(); void on_navigate_away_from_page() override; private: @@ -53,18 +53,16 @@ namespace gsr { std::unique_ptr