From b0190e90b3f9909bf58b8b150efa788bdc9e9e85 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 25 Aug 2023 11:13:37 +0200 Subject: Add config option to set low latency mode --- src/Config.cpp | 1 + src/QuickMedia.cpp | 2 ++ 2 files changed, 3 insertions(+) (limited to 'src') diff --git a/src/Config.cpp b/src/Config.cpp index c79249d..4f8d4d1 100644 --- a/src/Config.cpp +++ b/src/Config.cpp @@ -321,6 +321,7 @@ namespace QuickMedia { get_json_value(json_root, "scale", config->scale); get_json_value(json_root, "font_scale", config->font_scale); get_json_value(json_root, "spacing_scale", config->spacing_scale); + get_json_value(json_root, "low_latency_mode", config->low_latency_mode); } const Config& get_config() { diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp index 14efedb..79684ed 100644 --- a/src/QuickMedia.cpp +++ b/src/QuickMedia.cpp @@ -743,6 +743,8 @@ namespace QuickMedia { abort(); } + window.set_low_latency(get_config().low_latency_mode); + if(!program_path.empty() && program_path.back() != '/') program_path += '/'; -- cgit v1.2.3