mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-11-10 06:51:54 +00:00
Fixed defsfont/inst_zone lokey initialization, which was not done,
leading to random lost noteon depending on memory initialization
This commit is contained in:
parent
115b101a6f
commit
612ec06b8c
2 changed files with 9 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
2003-04-029 Antoine Schmitt <as@gratin.org>
|
||||
|
||||
* src/fluid_defsfont.c: inst_zone lokey is now properly inialized to 0
|
||||
(it was not, leading to random lost noteons depending on memory
|
||||
initialization)
|
||||
|
||||
2003-04-03 Peter Hanappe <peter@hanappe.com>
|
||||
|
||||
* src/fluid_rev.c: reverb parameters are clipped to their valid
|
||||
|
|
|
@ -604,7 +604,7 @@ fluid_defpreset_noteon(fluid_defpreset_t* preset, fluid_synth_t* synth, int chan
|
|||
|
||||
/* run thru all the zones of this instrument */
|
||||
inst_zone = fluid_inst_get_zone(inst);
|
||||
while (inst_zone != NULL) {
|
||||
while (inst_zone != NULL) {
|
||||
|
||||
/* make sure this instrument zone has a valid sample */
|
||||
sample = fluid_inst_zone_get_sample(inst_zone);
|
||||
|
@ -794,7 +794,7 @@ fluid_defpreset_noteon(fluid_defpreset_t* preset, fluid_synth_t* synth, int chan
|
|||
|
||||
inst_zone = fluid_inst_zone_next(inst_zone);
|
||||
}
|
||||
}
|
||||
}
|
||||
preset_zone = fluid_preset_zone_next(preset_zone);
|
||||
}
|
||||
|
||||
|
@ -1311,6 +1311,7 @@ new_fluid_inst_zone(char* name)
|
|||
}
|
||||
FLUID_STRCPY(zone->name, name);
|
||||
zone->sample = NULL;
|
||||
zone->keylo = 0;
|
||||
zone->keyhi = 128;
|
||||
zone->vello = 0;
|
||||
zone->velhi = 128;
|
||||
|
|
Loading…
Reference in a new issue