summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2015-01-12 14:56:42 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2015-01-12 14:56:42 +0100
commitf5bbf06b6067ff582bd7726b2f295292dea33f70 (patch)
treec0b6430382618c72f85ef9db7e061fbf7895843d /config.c
parent6b229d7d5f6377a930191d9ba469b7707b8eb8a5 (diff)
downloadvdr-f5bbf06b6067ff582bd7726b2f295292dea33f70.tar.gz
vdr-f5bbf06b6067ff582bd7726b2f295292dea33f70.tar.bz2
Added the new parameters "Setup/Miscellaneous/Volume steps" and ".../Volume linearize"
Diffstat (limited to 'config.c')
-rw-r--r--config.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/config.c b/config.c
index 657b61c0..af791b32 100644
--- a/config.c
+++ b/config.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: config.c 3.2 2013/08/31 12:41:28 kls Exp $
+ * $Id: config.c 3.3 2015/01/12 14:32:17 kls Exp $
*/
#include "config.h"
@@ -473,6 +473,8 @@ cSetup::cSetup(void)
ResumeID = 0;
CurrentChannel = -1;
CurrentVolume = MAXVOLUME;
+ VolumeSteps = 51;
+ VolumeLinearize = 0;
CurrentDolby = 0;
InitialChannel = "";
DeviceBondings = "";
@@ -686,6 +688,8 @@ bool cSetup::Parse(const char *Name, const char *Value)
else if (!strcasecmp(Name, "CurrentVolume")) CurrentVolume = atoi(Value);
else if (!strcasecmp(Name, "CurrentDolby")) CurrentDolby = atoi(Value);
else if (!strcasecmp(Name, "InitialChannel")) InitialChannel = Value;
+ else if (!strcasecmp(Name, "VolumeSteps")) VolumeSteps = atoi(Value);
+ else if (!strcasecmp(Name, "VolumeLinearize")) VolumeLinearize = atoi(Value);
else if (!strcasecmp(Name, "InitialVolume")) InitialVolume = atoi(Value);
else if (!strcasecmp(Name, "DeviceBondings")) DeviceBondings = Value;
else if (!strcasecmp(Name, "ChannelsWrap")) ChannelsWrap = atoi(Value);
@@ -801,6 +805,8 @@ bool cSetup::Save(void)
Store("CurrentVolume", CurrentVolume);
Store("CurrentDolby", CurrentDolby);
Store("InitialChannel", InitialChannel);
+ Store("VolumeSteps", VolumeSteps);
+ Store("VolumeLinearize", VolumeLinearize);
Store("InitialVolume", InitialVolume);
Store("DeviceBondings", DeviceBondings);
Store("ChannelsWrap", ChannelsWrap);