sample->sample_type = SF_SAMPLETYPE_MONO; sample->sf_sample_link = -1; sample->sf_sample_index = 0; 
static void initialize_sample(Instrument *inst, int frames, int sample_bits, int sample_rate){	int				i, j, samples;	Sample			*sample;	const uint8		*panning;		samples = inst->samples;	for(i = 0; i < samples; i++)	{		sample = &inst->sample[i];		sample->data_alloced = 0;		sample->loop_start = 0;		sample->loop_end = sample->data_length = frames << FRACTION_BITS;		sample->sample_rate = sample_rate;		sample->low_freq = freq_table[0];		sample->high_freq = freq_table[127];		sample->root_freq = freq_table[60];		sample->panning = 64;		sample->note_to_use = 0;		sample->volume = 1.0;		sample->modes = MODES_16BIT;		sample->low_vel = 0;		sample->high_vel = 127;		sample->tremolo_sweep_increment =			sample->tremolo_phase_increment = sample->tremolo_depth =			sample->vibrato_sweep_increment = sample->vibrato_control_ratio = sample->vibrato_depth = 0;		sample->cutoff_freq = sample->resonance = sample->tremolo_to_pitch = 			sample->tremolo_to_fc = sample->modenv_to_pitch = sample->modenv_to_fc =			sample->vel_to_fc = sample->key_to_fc = sample->vel_to_resonance = 0;		sample->envelope_velf_bpo = sample->modenv_velf_bpo =			sample->vel_to_fc_threshold = 64;		sample->key_to_fc_bpo = 60;		sample->scale_tuning = 100;		memset(sample->envelope_velf, 0, sizeof(sample->envelope_velf));		memset(sample->envelope_keyf, 0, sizeof(sample->envelope_keyf));		memset(sample->modenv_velf, 0, sizeof(sample->modenv_velf));		memset(sample->modenv_keyf, 0, sizeof(sample->modenv_keyf));		memset(sample->modenv_rate, 0, sizeof(sample->modenv_rate));		memset(sample->modenv_offset, 0, sizeof(sample->modenv_offset));		sample->envelope_delay = sample->modenv_delay =			sample->tremolo_delay = sample->vibrato_delay = 0;		sample->inst_type = INST_PCM;	}	if (samples <= 6 && (panning = gen_pan_list[samples - 1]) != NULL)	{		for(i = 0; i < samples; i++)			inst->sample[i].panning = panning[i];	}	for(i = 0; i < 6; i++)	{		int32			envelope_rate, envelope_offset;			envelope_rate = convert_envelope_rate(63);	/* wav2pat.c */		envelope_offset = convert_envelope_offset(240);	/* wav2pat.c */		for(j = 0; j < samples; j++)		{			sample = &inst->sample[j];			sample->envelope_rate[i] = envelope_rate;			sample->envelope_offset[i] = envelope_offset;		}	}}
4357	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4357/cabf9cb41d3c9ca0cc0993e7d3ded1fc3a5c00c9/smplfile.c/clean/timidity/smplfile.c