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 --- src/gui/SettingsPage.cpp | 280 +++++++++++++++++++++-------------------------- 1 file changed, 126 insertions(+), 154 deletions(-) (limited to 'src/gui/SettingsPage.cpp') diff --git a/src/gui/SettingsPage.cpp b/src/gui/SettingsPage.cpp index fad02fa..949e31a 100644 --- a/src/gui/SettingsPage.cpp +++ b/src/gui/SettingsPage.cpp @@ -1,7 +1,6 @@ #include "../../include/gui/SettingsPage.hpp" #include "../../include/gui/GsrPage.hpp" #include "../../include/gui/Label.hpp" -#include "../../include/gui/LineSeparator.hpp" #include "../../include/gui/PageStack.hpp" #include "../../include/gui/FileChooser.hpp" #include "../../include/gui/Subsection.hpp" @@ -17,6 +16,12 @@ #include namespace gsr { + enum class AudioTrackType { + DEVICE, + APPLICATION, + APPLICATION_CUSTOM + }; + SettingsPage::SettingsPage(Type type, const GsrInfo &gsr_info, Config &config, PageStack *page_stack) : StaticPage(mgl::vec2f(get_theme().window_width, get_theme().window_height).floor()), type(type), @@ -38,7 +43,7 @@ namespace gsr { add_widgets(gsr_info); add_page_specific_widgets(); - load(); + load(gsr_info); } std::unique_ptr SettingsPage::create_view_radio_button() { @@ -193,13 +198,15 @@ namespace gsr { std::unique_ptr