 if(strncmp(effect_opts, "chorus=", 7) == 0) { effect_opts += 7; switch(*effect_opts) { case '0': opt_chorus_control = 0; opt_surround_chorus = 0; break;  case '1': case '2': opt_surround_chorus = (*effect_opts == '2'); if(*(effect_opts + 1) == ',') opt_chorus_control = -(atoi(effect_opts + 2) & 0x7f); else opt_chorus_control = 1; break; default: ctl->cmsg(CMSG_ERROR, VERB_NORMAL, "Invalid -EFchorus parameter."); return 1; 
if (strncmp(effect_opts, "chorus=", 7) == 0) { effect_opts += 7; switch (*effect_opts) { case '0': opt_chorus_control = 0; opt_surround_chorus = 0; break; case '1': case '2': opt_surround_chorus = (*effect_opts == '2'); if (*(effect_opts + 1) == ',') opt_chorus_control = -(atoi(effect_opts + 2) & 0x7f); else opt_chorus_control = 1; break; default: ctl->cmsg(CMSG_ERROR, VERB_NORMAL, "Invalid -EFchorus parameter."); return 1; } return 0; 
static int parse_effect_option(char *effect_opts){    int i;    if(strncmp(effect_opts, "delay=", 6) == 0)    {	switch(effect_opts[6])	{	  case 'l':	    effect_lr_mode = 0;	    break;	  case 'r':	    effect_lr_mode = 1;	    break;	  case 'b':	    effect_lr_mode = 2;	    break;	  case '0':	    effect_lr_mode = -1;	    return 0;	}	if(effect_opts[7] == ',')	{	    effect_lr_delay_msec = atoi(effect_opts + 8);	    if(effect_lr_delay_msec < 0)	    {		effect_lr_delay_msec = 0;		effect_lr_mode = -1;		ctl->cmsg(CMSG_ERROR, VERB_NORMAL,			  "Invalid -EFdelay parameter.");		return 1;	    }	}	return 0;    }	if (strncmp(effect_opts, "reverb=", 7) == 0) {		effect_opts += 7;		switch(*effect_opts) {		case '0':			opt_reverb_control = 0;			break;		case '1':			if (*(effect_opts + 1) == ',')				opt_reverb_control = -(atoi(effect_opts + 2) & 0x7f);			else				opt_reverb_control = 1;			break;		case '2':			opt_reverb_control = 2;			break;		case '3':			opt_reverb_control = 3;			break;		default:			ctl->cmsg(CMSG_ERROR, VERB_NORMAL,					"Invalid -EFreverb parameter.");			return 1;		}		return 0;	}    if(strncmp(effect_opts, "chorus=", 7) == 0)    {	effect_opts += 7;	switch(*effect_opts)	{	  case '0':	    opt_chorus_control = 0;	    opt_surround_chorus = 0;	    break;	  case '1':	  case '2':	    opt_surround_chorus = (*effect_opts == '2');	    if(*(effect_opts + 1) == ',')		opt_chorus_control = -(atoi(effect_opts + 2) & 0x7f);	    else		opt_chorus_control = 1;	    break;	  default:	    ctl->cmsg(CMSG_ERROR, VERB_NORMAL,		      "Invalid -EFchorus parameter.");	    return 1;	}	return 0;    }    if(strncmp(effect_opts, "ns=", 3) == 0)    {	/* Noise Shaping filter from	 * Kunihiko IMAI <imai@leo.ec.t.kanazawa-u.ac.jp>	 */	i = atoi(effect_opts + 3);	if(i < 0 || i > 4)	{	    ctl->cmsg(CMSG_ERROR, VERB_NORMAL,		      "-EFns argument range is 0 to 4" );	    return 1;	}	noise_sharp_type = i;	return 0;    }    return 1;}
4357	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4357/c370b801c135423aa90e488f368e8cb8e2f6b576/timidity.c/buggy/timidity/timidity.c