From 5ee474966134a7e5c046504aa7899a25e10b9d43 Mon Sep 17 00:00:00 2001 From: Alexey Yakovenko Date: Thu, 24 Sep 2009 20:11:59 +0200 Subject: added replaygain config option album gain can be used now --- conf.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'conf.c') diff --git a/conf.c b/conf.c index ff841c98..45d62dee 100644 --- a/conf.c +++ b/conf.c @@ -27,6 +27,7 @@ char conf_hvsc_path[1024] = ""; int conf_hvsc_enable = 0; char conf_blacklist_plugins[1024]; // plugins listed in this option will not be loaded int conf_close_send_to_tray = 0; +int conf_replaygain_mode = 0; int conf_load (void) { @@ -93,6 +94,15 @@ conf_load (void) { else if (!strcasecmp (str, "close_send_to_tray")) { conf_close_send_to_tray = atoi (value); } + else if (!strcasecmp (str, "replaygain_mode")) { + int rg = atoi (value); + if (rg >= 0 && rg <= 2) { + conf_replaygain_mode = atoi (value); + } + else { + fprintf (stderr, "config warning: replaygain_mode must be one of 0, 1 or 2\n"); + } + } else { fprintf (stderr, "error in config file line %d\n", line); } -- cgit v1.2.3