st->opt_playmode[j++] = ((play_mode->encoding & PE_16BIT) ? '1' : '8'); 
if (play_mode->encoding & PE_24BIT) {st->opt_playmode[j++] = '2';} else if (play_mode->encoding & PE_16BIT) {st->opt_playmode[j++] = '1';} else {st->opt_playmode[j++] = '8';} 
SaveSettingTiMidity(SETTING_TIMIDITY *st){    int i, j;    st->amplification = SetValue(amplification, 0, MAX_AMPLIFICATION);    st->antialiasing_allowed = SetFlag(antialiasing_allowed);    st->buffer_fragments = opt_buffer_fragments;    st->control_ratio = SetValue(opt_control_ratio, 0, MAX_CONTROL_RATIO);    st->default_drumchannels = default_drumchannels;    st->default_drumchannel_mask = default_drumchannel_mask;    st->opt_modulation_wheel = SetFlag(opt_modulation_wheel);    st->opt_portamento = SetFlag(opt_portamento);    st->opt_nrpn_vibrato = SetFlag(opt_nrpn_vibrato);    st->opt_channel_pressure = SetFlag(opt_channel_pressure);    st->opt_trace_text_meta_event = SetFlag(opt_trace_text_meta_event);    st->opt_overlap_voice_allow = SetFlag(opt_overlap_voice_allow);    st->opt_default_mid = opt_default_mid;    st->default_tonebank = default_tonebank;    st->special_tonebank = special_tonebank;    st->effect_lr_mode = effect_lr_mode;    st->effect_lr_delay_msec = effect_lr_delay_msec;    st->opt_reverb_control = opt_reverb_control;    st->opt_chorus_control = opt_chorus_control;	st->opt_surround_chorus = opt_surround_chorus;	st->opt_tva_attack = opt_tva_attack;	st->opt_tva_decay = opt_tva_decay;	st->opt_tva_release = opt_tva_release;	st->opt_delay_control = opt_delay_control;	st->opt_default_module = opt_default_module;	st->opt_lpf_def = opt_lpf_def;	st->opt_drum_effect = opt_drum_effect;	st->opt_modulation_envelope = opt_modulation_envelope;	st->opt_eq_control = opt_eq_control;	st->opt_insertion_effect = opt_insertion_effect;    st->noise_sharp_type = noise_sharp_type;    st->opt_evil_mode = SetFlag(opt_evil_mode);    st->adjust_panning_immediately = SetFlag(adjust_panning_immediately);    st->fast_decay = SetFlag(fast_decay);#ifdef SUPPORT_SOUNDSPEC    st->view_soundspec_flag = SetFlag(view_soundspec_flag);    st->spectrigram_update_sec = spectrigram_update_sec;#endif    for(i = 0; i < MAX_CHANNELS; i++)    {	if(def_instr_name[0])	    st->default_program[i] = SPECIAL_PROGRAM;	else	    st->default_program[i] = default_program[i];    }    j = 0;    st->opt_ctl[j++] = ctl->id_character;    for(i = 1; i < ctl->verbosity; i++)	st->opt_ctl[j++] = 'v';    for(i = 1; i > ctl->verbosity; i--)	st->opt_ctl[j++] = 'q';    if(ctl->trace_playing)	st->opt_ctl[j++] = 't';    if(ctl->flags & CTLF_LIST_LOOP)	st->opt_ctl[j++] = 'l';    if(ctl->flags & CTLF_LIST_RANDOM)	st->opt_ctl[j++] = 'r';    if(ctl->flags & CTLF_LIST_SORT)	st->opt_ctl[j++] = 's';    if(ctl->flags & CTLF_AUTOSTART)	st->opt_ctl[j++] = 'a';    if(ctl->flags & CTLF_AUTOEXIT)	st->opt_ctl[j++] = 'x';    if(ctl->flags & CTLF_DRAG_START)	st->opt_ctl[j++] = 'd';    if(ctl->flags & CTLF_AUTOUNIQ)	st->opt_ctl[j++] = 'u';    if(ctl->flags & CTLF_AUTOREFINE)	st->opt_ctl[j++] = 'R';    if(ctl->flags & CTLF_NOT_CONTINUE)	st->opt_ctl[j++] = 'C';    st->opt_ctl[j] = '\0';    st->opt_realtime_playing = SetFlag(opt_realtime_playing);    st->reduce_voice_threshold = reduce_voice_threshold;    j = 0;    st->opt_playmode[j++] = play_mode->id_character;    st->opt_playmode[j++] = ((play_mode->encoding & PE_MONO) ? 'M' : 'S');    st->opt_playmode[j++] = ((play_mode->encoding & PE_SIGNED) ? 's' : 'u');    st->opt_playmode[j++] = ((play_mode->encoding & PE_16BIT) ? '1' : '8');    if(play_mode->encoding & PE_ULAW)	st->opt_playmode[j++] = 'U';    else if(play_mode->encoding & PE_ALAW)	st->opt_playmode[j++] = 'A';    else	st->opt_playmode[j++] = 'l';    if(play_mode->encoding & PE_BYTESWAP)	st->opt_playmode[j++] = 'x';    st->opt_playmode[j] = '\0';    strncpy(st->OutputName,OutputName,sizeof(st->OutputName)-1);	strncpy(st->OutputDirName,w32g_output_dir,MAXPATH);	st->OutputDirName[MAXPATH-1] = '\0';	st->auto_output_mode = w32g_auto_output_mode;    st->voices = voices;	st->auto_reduce_polyphony = auto_reduce_polyphony;    st->quietchannels = quietchannels;    st->temper_type_mute = temper_type_mute;    snprintf(st->opt_qsize,sizeof(st->opt_qsize),"%s/%s",	     opt_aq_max_buff,opt_aq_fill_buff);    st->modify_release = SetValue(modify_release, 0, MAX_MREL);    st->allocate_cache_size = allocate_cache_size;	st->opt_drum_power = SetValue(opt_drum_power, 0, MAX_AMPLIFICATION);	st->opt_amp_compensation = opt_amp_compensation;	st->key_adjust = key_adjust;	st->opt_force_keysig = opt_force_keysig;	st->opt_pure_intonation = opt_pure_intonation;	st->opt_init_keysig = opt_init_keysig;    st->output_rate = opt_output_rate;    if(st->output_rate == 0)    {	st->output_rate = play_mode->rate;	if(st->output_rate == 0)	    st->output_rate = DEFAULT_RATE;    }    st->output_rate = SetValue(st->output_rate,MIN_OUTPUT_RATE,MAX_OUTPUT_RATE);    strncpy(st->output_text_code,output_text_code,sizeof(st->output_text_code)-1);    st->free_instruments_afterwards = free_instruments_afterwards;    st->opt_wrd[0] = wrdt->id;    if(wrdt_open_opts)	strncpy(st->opt_wrd + 1, wrdt_open_opts, sizeof(st->opt_wrd) - 2);    else	st->opt_wrd[1] = '\0';#if defined(__W32__) && defined(SMFCONV)    st->opt_rcpcv_dll = opt_rcpcv_dll;#endif /* SMFCONV */  st->data_block_bits = data_block_bits;  st->data_block_num = data_block_num;#ifdef IA_W32G_SYN	for ( i = 0; i < MAX_PORT; i ++ ) {		st->SynIDPort[i] = w32g_syn_id_port[i];	}	st->syn_AutoStart = syn_AutoStart;	st->processPriority = processPriority;	st->syn_ThreadPriority = syn_ThreadPriority;	st->SynPortNum = w32g_syn_port_num;	st->SynShTime = stream_max_compute;#endif}
4357	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4357/1094ce45aef7aea71b6455d1e4865880143f5cba/w32g_utl.c/buggy/interface/w32g_utl.c