mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-05-09 15:00:56 +00:00
dont exit sample processing early
when a single sample is broken
This commit is contained in:
parent
b1b870049b
commit
19587d343a
1 changed files with 7 additions and 7 deletions
|
@ -360,14 +360,14 @@ int fluid_defsfont_load(fluid_defsfont_t* defsfont, const fluid_file_callbacks_t
|
||||||
sample = new_fluid_sample();
|
sample = new_fluid_sample();
|
||||||
if (sample == NULL) goto err_exit;
|
if (sample == NULL) goto err_exit;
|
||||||
|
|
||||||
if (fluid_sample_import_sfont(sample, sfsample, defsfont) != FLUID_OK)
|
if (fluid_sample_import_sfont(sample, sfsample, defsfont) == FLUID_OK)
|
||||||
goto err_exit;
|
{
|
||||||
|
|
||||||
/* Store reference to FluidSynth sample in SFSample for later IZone fixups */
|
/* Store reference to FluidSynth sample in SFSample for later IZone fixups */
|
||||||
sfsample->fluid_sample = sample;
|
sfsample->fluid_sample = sample;
|
||||||
|
|
||||||
fluid_defsfont_add_sample(defsfont, sample);
|
fluid_defsfont_add_sample(defsfont, sample);
|
||||||
fluid_voice_optimize_sample(sample);
|
fluid_voice_optimize_sample(sample);
|
||||||
|
}
|
||||||
p = fluid_list_next(p);
|
p = fluid_list_next(p);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue