current_keysig = opt_init_keysig; 
current_keysig = (opt_init_keysig == 8) ? 0 : opt_init_keysig; 
void rtsyn_init(void){	int i,j;		/* set constants */	opt_realtime_playing = 1; /* Enable loading patch while playing */	allocate_cache_size = 0; /* Don't use pre-calclated samples */	auto_reduce_polyphony = 0;	current_keysig = opt_init_keysig;	note_key_offset = 0;	time_advance=play_mode->rate/TICKTIME_HZ*2;	if (!(play_mode->encoding & PE_MONO))		time_advance >>= 1;	if (play_mode->encoding & PE_24BIT)		time_advance /= 3;	else if (play_mode->encoding & PE_16BIT)		time_advance >>= 1;	if (opt_force_keysig != 8) {		i = current_keysig + ((current_keysig < 8) ? 7 : -6);		j = opt_force_keysig + ((current_keysig < 8) ? 7 : 10);		while (i != j && i != j + 12) {			if (++note_key_offset > 6)				note_key_offset -= 12;			i += (i > 10) ? -5 : 7;		}	}	i = current_keysig + ((current_keysig < 8) ? 7 : -9), j = 0;	while (i != 7 && i != 19)		i += (i < 7) ? 5 : -7, j++;	j += note_key_offset, j -= floor(j / 12.0) * 12;	current_freq_table = j;	#ifdef USE_WINSYN_TIMER_I	rtsyn_mutex_init(timerMUTEX);#ifdef __W32__	timeBeginPeriod(1);	{		DWORD data = 0;		UINT delay;		delay=(1000/TICKTIME_HZ);		 				timerID = timeSetEvent( delay, 0, timercalc, data,			TIME_PERIODIC | TIME_CALLBACK_FUNCTION );        if( !timerID ){        	ctl->cmsg(  CMSG_ERROR, VERB_NORMAL,"Fail to setup Timer Interrupt (winsyn) \n");        }	}#else	thread_on_f=1;	if(0!=pthread_create(&timer_thread,NULL,timercalc,NULL)){        	ctl->cmsg(  CMSG_ERROR, VERB_NORMAL,"Fail to setup Timer Interrupt (winsyn) \n");	}#endif#endif	rtsyn_server_reset();}
4357	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4357/6e735c2764b7b157d0d160045412a4c2cdcead39/rtsyn_common.c/buggy/interface/rtsyn_common.c