diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2009-09-24 20:11:59 +0200 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2009-09-24 20:11:59 +0200 |
commit | 5ee474966134a7e5c046504aa7899a25e10b9d43 (patch) | |
tree | 500cf98052edef3f44b6f26d211ba5c8087f717d /conf.c | |
parent | 640248ff4a42714a457a699c3c95a2e0a6328242 (diff) |
added replaygain config option
album gain can be used now
Diffstat (limited to 'conf.c')
-rw-r--r-- | conf.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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); } |