Didn't need note_off_decay in the WildMidi sample struct

This commit is contained in:
Randy Heit 2016-01-11 20:07:14 -06:00
parent 27bf86e1eb
commit 141cd660eb
2 changed files with 0 additions and 7 deletions

View file

@ -60,8 +60,6 @@ struct _sample {
unsigned int inc_div;
signed short *data;
struct _sample *next;
unsigned int note_off_decay;
};
struct _env {

View file

@ -965,11 +965,6 @@ struct _sample * _WM_load_gus_pat(const char *filename, int fix_release) {
samples_f += (float)(gus_sample->env_target[4] - gus_sample->env_target[5]) / gus_sample->env_rate[5];
}
samples_f += (float)gus_sample->env_target[5] / gus_sample->env_rate[6];
gus_sample->note_off_decay = (unsigned)samples_f;
} else {
gus_sample->note_off_decay = gus_sample->data_length * _WM_SampleRate / gus_sample->rate;
}
gus_ptr += tmp_cnt;