From 141cd660eb79972fb76006e881cb76fb13ee0ffb Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Mon, 11 Jan 2016 20:07:14 -0600 Subject: [PATCH] Didn't need note_off_decay in the WildMidi sample struct --- src/wildmidi/common.h | 2 -- src/wildmidi/gus_pat.cpp | 5 ----- 2 files changed, 7 deletions(-) diff --git a/src/wildmidi/common.h b/src/wildmidi/common.h index efe08dd25..a089329e0 100644 --- a/src/wildmidi/common.h +++ b/src/wildmidi/common.h @@ -60,8 +60,6 @@ struct _sample { unsigned int inc_div; signed short *data; struct _sample *next; - - unsigned int note_off_decay; }; struct _env { diff --git a/src/wildmidi/gus_pat.cpp b/src/wildmidi/gus_pat.cpp index 83d311367..8f4824dc5 100644 --- a/src/wildmidi/gus_pat.cpp +++ b/src/wildmidi/gus_pat.cpp @@ -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;