aboutsummaryrefslogtreecommitdiff
path: root/src/config.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-11-16 00:54:05 +0100
committerdec05eba <dec05eba@protonmail.com>2024-11-16 00:54:05 +0100
commit21c7edff59e7b28fbcc542e29316279e6348e0e4 (patch)
tree6bbda7e8ecf7769a1618c67c1a0aef6dab404adb /src/config.hpp
parentb797a0c0ca8ea1274ea3171d572e28b3525491f0 (diff)
Add application audio recording option
Diffstat (limited to 'src/config.hpp')
-rw-r--r--src/config.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/config.hpp b/src/config.hpp
index 0ab8af2..82bdb9f 100644
--- a/src/config.hpp
+++ b/src/config.hpp
@@ -28,8 +28,11 @@ struct MainConfig {
int32_t fps = 60;
int32_t video_bitrate = 15000;
bool merge_audio_tracks = true;
+ bool record_app_audio_inverted = false;
bool change_video_resolution = false;
+ std::string audio_type_view = "audio_devices";
std::vector<std::string> audio_input;
+ std::vector<std::string> application_audio;
std::string color_range;
std::string quality;
std::string codec; // Video codec
@@ -313,8 +316,11 @@ static std::map<std::string, ConfigValue> get_config_options(Config &config) {
{"main.fps", {CONFIG_TYPE_I32, &config.main_config.fps}},
{"main.video_bitrate", {CONFIG_TYPE_I32, &config.main_config.video_bitrate}},
{"main.merge_audio_tracks", {CONFIG_TYPE_BOOL, &config.main_config.merge_audio_tracks}},
+ {"main.record_app_audio_inverted", {CONFIG_TYPE_BOOL, &config.main_config.record_app_audio_inverted}},
{"main.change_video_resolution", {CONFIG_TYPE_BOOL, &config.main_config.change_video_resolution}},
+ {"main.audio_type_view", {CONFIG_TYPE_STRING, &config.main_config.audio_type_view}},
{"main.audio_input", {CONFIG_TYPE_STRING_ARRAY, &config.main_config.audio_input}},
+ {"main.application_audio", {CONFIG_TYPE_STRING_ARRAY, &config.main_config.application_audio}},
{"main.color_range", {CONFIG_TYPE_STRING, &config.main_config.color_range}},
{"main.quality", {CONFIG_TYPE_STRING, &config.main_config.quality}},
{"main.codec", {CONFIG_TYPE_STRING, &config.main_config.codec}},