if (vp->v.loop_start > vp->len) vp->v.loop_start = vp->len; 
static void set_sample_info(SFInfo *sf, SampleList *vp, LayerTable *tbl){    SFSampleInfo *sp = &sf->sample[tbl->val[SF_sampleId]];    /* set sample position */    vp->start = (tbl->val[SF_startAddrsHi] << 15)	+ tbl->val[SF_startAddrs]	+ sp->startsample;    vp->len = (tbl->val[SF_endAddrsHi] << 15)	+ tbl->val[SF_endAddrs]	+ sp->endsample - vp->start;	vp->start = abs(vp->start);	vp->len = abs(vp->len);    /* set loop position */    vp->v.loop_start = (tbl->val[SF_startloopAddrsHi] << 15)	+ tbl->val[SF_startloopAddrs]	+ sp->startloop - vp->start;    vp->v.loop_end = (tbl->val[SF_endloopAddrsHi] << 15)	+ tbl->val[SF_endloopAddrs]	+ sp->endloop - vp->start;    /* set data length */    vp->v.data_length = vp->len + 1;    if(vp->v.loop_end > vp->len + 1)	vp->v.loop_end = vp->len + 1;    /* Sample rate */	if(sp->samplerate > 50000) {sp->samplerate = 50000;}	else if(sp->samplerate < 400) {sp->samplerate = 400;}    vp->v.sample_rate = sp->samplerate;    /* sample mode */    vp->v.modes = MODES_16BIT;    /* volume envelope & total volume */    vp->v.volume = calc_volume(tbl) * current_sfrec->amptune;#ifndef SF_SUPPRESS_ENVELOPE	convert_volume_envelope(vp, tbl);#endif /* SF_SUPPRESS_ENVELOPE */	set_envelope_parameters(vp);    if(tbl->val[SF_sampleFlags] == 1 || tbl->val[SF_sampleFlags] == 3)    {		/* looping */		vp->v.modes |= MODES_LOOPING | MODES_SUSTAIN;		if(tbl->val[SF_sampleFlags] == 3)			vp->v.data_length = vp->v.loop_end; /* strip the tail */	}    else    {		/* set a small blank loop at the tail for avoiding abnormal loop. */		vp->v.loop_start = vp->len;		vp->v.loop_end = vp->len + 1;    }    /* convert to fractional samples */    vp->v.data_length <<= FRACTION_BITS;    vp->v.loop_start <<= FRACTION_BITS;    vp->v.loop_end <<= FRACTION_BITS;    /* point to the file position */    vp->start = vp->start * 2 + sf->samplepos;    vp->len *= 2;	vp->v.vel_to_fc = -2400;	/* SF2 default value */	vp->v.key_to_fc = vp->v.vel_to_resonance = 0;	vp->v.envelope_velf_bpo = vp->v.modenv_velf_bpo =		vp->v.vel_to_fc_threshold = 64;	vp->v.key_to_fc_bpo = 60;	memset(vp->v.envelope_velf, 0, sizeof(vp->v.envelope_velf));	memset(vp->v.modenv_velf, 0, sizeof(vp->v.modenv_velf));	vp->v.inst_type = INST_SF2;}
4357	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4357/ae541cd115337ed6e28eef347fd61fb6b23687b0/sndfont.c/clean/timidity/sndfont.c