From 0c1c6a258b7a2675cc9eb930ec59378dcac1d030 Mon Sep 17 00:00:00 2001 From: Kalle Wallin Date: Tue, 13 Jul 2004 17:31:53 +0000 Subject: Crossfade time can now be definied in the rc file (crossfade-time) git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1865 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/conf.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/conf.c') diff --git a/src/conf.c b/src/conf.c index b31b7b173..740939d10 100644 --- a/src/conf.c +++ b/src/conf.c @@ -58,6 +58,7 @@ #define CONF_VISIBLE_BELL "visible-bell" #define CONF_XTERM_TITLE "set-xterm-title" #define CONF_ENABLE_MOUSE "enable-mouse" +#define CONF_CROSSFADE_TIME "crossfade-time" typedef enum { KEY_PARSER_UNKNOWN, @@ -467,6 +468,10 @@ read_rc_file(char *filename, options_t *options) { options->enable_mouse = str2bool(value); } + else if( !strcasecmp(CONF_CROSSFADE_TIME, name) ) + { + options->crossfade_time = atoi(value); + } else { match_found = 0; -- cgit v1.2.3