mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-13 07:57:51 +00:00
Didn't need note_off_decay in the WildMidi sample struct
This commit is contained in:
parent
27bf86e1eb
commit
141cd660eb
2 changed files with 0 additions and 7 deletions
|
@ -60,8 +60,6 @@ struct _sample {
|
||||||
unsigned int inc_div;
|
unsigned int inc_div;
|
||||||
signed short *data;
|
signed short *data;
|
||||||
struct _sample *next;
|
struct _sample *next;
|
||||||
|
|
||||||
unsigned int note_off_decay;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _env {
|
struct _env {
|
||||||
|
|
|
@ -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[4] - gus_sample->env_target[5]) / gus_sample->env_rate[5];
|
||||||
}
|
}
|
||||||
samples_f += (float)gus_sample->env_target[5] / gus_sample->env_rate[6];
|
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;
|
gus_ptr += tmp_cnt;
|
||||||
|
|
Loading…
Reference in a new issue