vp->sample->root_freq == freq_table[vp->sample->note_to_use] && 
vp->sample->root_freq == get_note_freq(vp->sample, vp->sample->note_to_use) && 
sample_t *resample_voice(int v, int32 *countptr){    Voice *vp = &voice[v];    int mode;    sample_t *result;    resampler_t saved_resample;    if(vp->sample->sample_rate == play_mode->rate &&       vp->sample->root_freq == freq_table[vp->sample->note_to_use] &&       vp->frequency == vp->orig_frequency)    {	int32 ofs;	/* Pre-resampled data -- just update the offset and check if	   we're out of data. */	ofs = (int32)(vp->sample_offset >> FRACTION_BITS); /* Kind of silly to use						   FRACTION_BITS here... */	if(*countptr >= (vp->sample->data_length>>FRACTION_BITS) - ofs)	{	    /* Note finished. Free the voice. */	    vp->timeout = 1;	    /* Let the caller know how much data we had left */	    *countptr = (int32)(vp->sample->data_length >> FRACTION_BITS) - ofs;	}	else	    vp->sample_offset += *countptr << FRACTION_BITS;	return vp->sample->data+ofs;    }    mode = vp->sample->modes;    if((mode & MODES_LOOPING) &&       ((mode & MODES_ENVELOPE) ||	(vp->status & (VOICE_ON | VOICE_SUSTAINED))))    {	if(mode & MODES_PINGPONG)	{	    vp->cache = NULL;	    mode = 2;	/* Bidir loop */	}	else	    mode = 0;	/* loop */    }    else	mode = 1;	/* no loop */    saved_resample = cur_resample;#ifndef FIXED_RESAMPLATION    if (reduce_quality_flag && cur_resample != resample_none)	cur_resample = resample_linear;#endif    if(vp->porta_control_ratio)	result = porta_resample_voice(v, countptr, mode);    else if(vp->vibrato_control_ratio)	result = vib_resample_voice(v, countptr, mode);    else	result = normal_resample_voice(v, countptr, mode);#ifndef FIXED_RESAMPLATION    cur_resample = saved_resample; /* get back */#endif    return result;}
4357	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4357/c280117e182e53ac14c4642e2a213d16de9f2dec/resample.c/clean/timidity/resample.c