} else if(strcasecmp("sse",argv[num+1])==0){ gogo_opts.optUSESSE = 0; } else if(strcasecmp("cmov",argv[num+1])==0){ gogo_opts.optUSECMOV = 0; } else if(strcasecmp("emmx",argv[num+1])==0){ gogo_opts.optUSEEMMX = 0; } else if(strcasecmp("sse2",argv[num+1])==0){ gogo_opts.optUSESSE2 = 0; 
void set_gogo_opts_use_commandline_options(char *commandline){	int argc;	char **argv;	int num;	if(commandline_to_argc_argv(commandline,&argc,&argv)){		return;	}	for(num = 0;num<argc;){		// output bitrate		// -b kbps        //     input PCM is higher than 32kHz [ 32,40,48,56,64,80,96,112,128,160,192,224,256,320 ]        //     input PCM is lower than 32kHz   [ 8,16,24,32,40,48,56,64,80,96,112,128,144,160 ]		if(strcasecmp("-b",argv[num])==0){			if(num+1>=argc) break;			gogo_opts.optBITRATE1 = gogo_opts.optBITRATE2 = atoi(argv[num+1]);			num += 2;			continue;		}		// output bitrate for VBR		// -br low_kbps high_kbps        //     [ 32,40,48,56,64,80,96,112,128,160,192,224,256,320 ]		if(strcasecmp("-br",argv[num])==0){			if(num+2>=argc) break;			if(gogo_opts.optVBR==-1)				gogo_opts.optVBR = 9;			gogo_opts.optVBRBITRATE_low = atoi(argv[num+1]);			gogo_opts.optVBRBITRATE_high = atoi(argv[num+2]);			num += 3;			continue;		}		// low pass filter		// -lpf on : 16kHz low pass filter ON		// -lpf off : 16kHz low pass filter OFF		// -lpf para1 para2 :  enhanced low pass filter		//     para1 (0-100)   para2 (0-100)		if(strcasecmp("-lpf",argv[num])==0){			if(num+1>=argc) break;			if(strcasecmp("on",argv[num+1])==0){				gogo_opts.optENHANCEDFILTER_A = -1;				gogo_opts.optENHANCEDFILTER_B = -1;				gogo_opts.optUSELPF16 = 1;				num += 2;				continue;			} else if(strcasecmp("off",argv[num+1])==0){				gogo_opts.optENHANCEDFILTER_A = -1;				gogo_opts.optENHANCEDFILTER_B = -1;				gogo_opts.optUSELPF16 = 0;				num += 2;				continue;			}			if(num+2>=argc) break;			gogo_opts.optENHANCEDFILTER_A = atoi(argv[num+1]);			gogo_opts.optENHANCEDFILTER_B = atoi(argv[num+2]);			num += 3;			continue;		}		// encodemode		// -m m : monoral		// -m s : stereo		// -m j : joint stereo		// -m f : mid/side stereo		// -m d : dual channel		if(strcasecmp("-m",argv[num])==0){			if(num+1>=argc) break;			if(strcasecmp("m",argv[num+1])==0){				gogo_opts.optENCODEMODE = MC_MODE_MONO;			} else if(strcasecmp("s",argv[num+1])==0){				gogo_opts.optENCODEMODE = MC_MODE_STEREO;			} else if(strcasecmp("j",argv[num+1])==0){				gogo_opts.optENCODEMODE = MC_MODE_JOINT;			} else if(strcasecmp("f",argv[num+1])==0){				gogo_opts.optENCODEMODE = MC_MODE_MSSTEREO;			} else if(strcasecmp("d",argv[num+1])==0){				gogo_opts.optENCODEMODE = MC_MODE_DUALCHANNEL;			}			num += 2;			continue;		}		// -psy		// -nopsy		if(strcasecmp("-psy",argv[num])==0){			gogo_opts.optUSEPSY = 1;			num += 1;			continue;		}		if(strcasecmp("-nopsy",argv[num])==0){			gogo_opts.optUSEPSY = 0;			num += 1;			continue;		}		// -on 3dn		// -on mmx		// -on sse		// -on kni		// -on e3dn		if(strcasecmp("-on",argv[num])==0){			if(num+1>=argc) break;			if(strcasecmp("3dn",argv[num+1])==0){				gogo_opts.optUSE3DNOW = 1;			} else if(strcasecmp("mmx",argv[num+1])==0){				gogo_opts.optUSEMMX = 1;			} else if(strcasecmp("sse",argv[num+1])==0 || strcasecmp("kni",argv[num+1])==0){				gogo_opts.optUSEKNI = 1;			} else if(strcasecmp("e3dn",argv[num+1])==0){				gogo_opts.optUSEE3DNOW = 1;			}			num += 2;			continue;		}		// -off 3dn		// -off mmx		// -off sse		// -off kni		// -off e3dn		if(strcasecmp("-on",argv[num])==0){			if(num+1>=argc) break;			if(strcasecmp("3dn",argv[num+1])==0){				gogo_opts.optUSE3DNOW = 0;			} else if(strcasecmp("mmx",argv[num+1])==0){				gogo_opts.optUSEMMX = 0;			} else if(strcasecmp("sse",argv[num+1])==0 || strcasecmp("kni",argv[num+1])==0){				gogo_opts.optUSEKNI = 0;			} else if(strcasecmp("e3dn",argv[num+1])==0){				gogo_opts.optUSEE3DNOW = 0;			}			num += 2;			continue;		}		// emphasis type		// -emp n : none		// -emp 5 : 50/15ms (normal CD-DA emphasis)		// -emp c : CCITT		if(strcasecmp("-emp",argv[num])==0){			if(num+1>=argc) break;			if(strcasecmp("n",argv[num+1])==0){				gogo_opts.optEMPHASIS = MC_EMP_NONE;			} else if(strcasecmp("5",argv[num+1])==0){				gogo_opts.optEMPHASIS = MC_EMP_5015MS;			} else if(strcasecmp("c",argv[num+1])==0){				gogo_opts.optEMPHASIS = MC_EMP_CCITT;			}			num += 2;			continue;		}		// -cpu num		if(strcasecmp("-cpu",argv[num])==0){			if(num+1>=argc) break;			gogo_opts.optCPU = atoi(argv[num+1]);			num += 2;			continue;		}		// -v 0..9 (low compression - high compression)		if(strcasecmp("-v",argv[num])==0){			if(num+1>=argc) break;			gogo_opts.optVBR = atoi(argv[num+1]);			num += 2;			continue;		}		// -d freq : output MP3 frequency(kHz) 		if(strcasecmp("-d",argv[num])==0){			if(num+1>=argc) break;			gogo_opts.optOUTFREQ = (int)(atof(argv[num+1])*1000);			num += 2;			continue;		}#if 0   // Do not use it.		// -mono		// -stereo		// -8bit		// -16bit		// -bswap		// -bswap-  (not bitswap)		// -tos       (snd file for TonwsOS)		// -tos-      (not snd file for TonwsOS		if(strcasecmp("-mono",argv[num])==0){			gogo_opts.optMONO_PCM = 1;			num += 1;			continue;		}		if(strcasecmp("-stereo",argv[num])==0){			gogo_opts.optMONO_PCM = 0;			num += 1;			continue;		}		if(strcasecmp("-8bit",argv[num])==0){			gogo_opts.opt8BIT_PCM = 1;			num += 1;			continue;		}		if(strcasecmp("-16bit",argv[num])==0){			gogo_opts.opt8BIT_PCM = 0;			num += 1;			continue;		}		if(strcasecmp("-bswap",argv[num])==0){			gogo_opts.optBYTE_SWAP = 1;			num += 1;			continue;		}		if(strcasecmp("-bswap-",argv[num])==0){			gogo_opts.optBYTE_SWAP = 0;			num += 1;			continue;		}		if(strcasecmp("-ts",argv[num])==0){			gogo_opts.optTOWNS_SND = 1;			num += 1;			continue;		}		if(strcasecmp("-ts-",argv[num])==0){			gogo_opts.optTOWNS_SND = 1;			num += 1;			continue;		}		// -s freq  :  input PCM freqency(kHz)		if(strcasecmp("-s",argv[num])==0){			if(num+1>=argc) break;			gogo_opts.optINPFREQ = (int)(atof(argv[num+1])*1000);			num += 2;			continue;		}		//  -offset byte   :  jump byte bytes from head.		if(strcasecmp("-offset",argv[num])==0){			if(num+1>=argc) break;			gogo_opts.optSTARTOFFSET = atol(argv[num+1]);			num += 2;			continue;		}#endif		// -th threshold mspower		if(strcasecmp("-th",argv[num])==0){			if(num+2>=argc) break;			gogo_opts.optMSTHRESHOLD_threshold = atoi(argv[num+1]);			gogo_opts.optMSTHRESHOLD_mspower = atoi(argv[num+2]);			num += 3;			continue;		}		// -riff normal	  :  mp3+TAG		// -riff wave     :  RIFF/WAVE		// -riff rmp      :  RIFF/RMP		if(strcasecmp("-riff",argv[num])==0){			if(num+1>=argc) break;			if(strcasecmp("wave",argv[num+1])==0){				gogo_opts.optOUTPUT_FORMAT = MC_OUTPUT_NORMAL;			} else if(strcasecmp("wave",argv[num+1])==0){				gogo_opts.optOUTPUT_FORMAT = MC_OUTPUT_RIFF_WAVE;			} else if(strcasecmp("wave",argv[num+1])==0){				gogo_opts.optOUTPUT_FORMAT = MC_OUTPUT_RIFF_RMP;			}			num += 2;			continue;		}		//   -priority normal  : normal priority		//   -priority num		if(strcasecmp("-priority",argv[num])==0){			if(num+1>=argc) break;			if(strcasecmp("normal",argv[num+1])==0){				gogo_opts.optTHREAD_PRIORITY = 10;			} else {				gogo_opts.optTHREAD_PRIORITY = atol(argv[num+1]);			}			num += 2;			continue;		}		//  -readthread num		if(strcasecmp("-readthread",argv[num])==0){			if(num+1>=argc) break;			gogo_opts.optREADTHREAD_PRIORITY = atol(argv[num+1]);			num += 2;			continue;		}		// -i		// -i-		if(strcasecmp("-i",argv[num])==0){			gogo_opts.optVERIFY = 1;			num += 1;			continue;		}		if(strcasecmp("-i-",argv[num])==0){			gogo_opts.optVERIFY = 0;			num += 1;			continue;		}		// -o directory_path		if(strcasecmp("-o",argv[num])==0){			if(num+1>=argc) break;			strncpy((char *)gogo_opts.optOUTPUTDIR,argv[num+1],1023);			gogo_opts.optOUTPUTDIR[1023] = '\0';			num += 2;			continue;		}		num += 1;	}	return;}
4357	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4357/b145888026ba74b152bd275692a491408aa2b59e/gogo_a.c/clean/timidity/gogo_a.c