Add option to disable volume control

This commit is contained in:
Jonas Kvinge
2019-03-09 16:48:45 +01:00
parent 384209ba70
commit 3e658845d2
20 changed files with 287 additions and 151 deletions

View File

@@ -36,7 +36,7 @@
#include "settings/backendsettingspage.h"
Engine::Base::Base()
: volume_(50),
: volume_(100),
beginning_nanosec_(0),
end_nanosec_(0),
scope_(kScopeSize),
@@ -103,6 +103,8 @@ void Engine::Base::ReloadSettings() {
output_ = s.value("output").toString();
device_ = s.value("device");
volume_control_ = s.value("volume_control", true).toBool();
buffer_duration_nanosec_ = s.value("bufferduration", 4000).toLongLong() * kNsecPerMsec;
buffer_min_fill_ = s.value("bufferminfill", 33).toInt();