past_time = get_current_calender_time() - starttime; ev->time = (int32)((past_time) * play_mode->rate); 
static int shift=0;  if(set_time_first==2){ starttime=get_current_calender_time()-(double)current_sample/(double)play_mode->rate; } past_time = (int32)((get_current_calender_time() - starttime)*play_mode->rate);  if (set_time_first==1){ shift=(double)past_time-(double)current_sample;  } if (set_time_first>0) set_time_first--; event_time_offset=play_mode->rate/TICKTIME_HZ; ev->time = past_time; if(set_time_first==0 && (past_time-current_sample>stream_max_compute*play_mode->rate/1000)){ starttime=get_current_calender_time()-(double)(current_sample+shift)/(double)play_mode->rate; ev->time=current_sample+shift; } 
static void seq_set_time(MidiEvent *ev){	double past_time,btime;	past_time = get_current_calender_time() - starttime;	ev->time = (int32)((past_time) * play_mode->rate);	ev->time += (int32)event_time_offset;	rtsyn_reachtime=get_current_calender_time()+(double)time_advance/play_mode->rate;#if 0	btime = (double)((ev->time-current_sample/midi_time_ratio)/play_mode->rate);	btime *= 1.01; /* to be sure */	aq_set_soft_queue(btime, 0.0);#endif}
4357	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4357/ac05fc62cad3d61b721f42ec31c55bf195182c15/rtsyn_common.c/clean/interface/rtsyn_common.c