[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [fluid-dev] fix
From: |
Josh Green |
Subject: |
Re: [fluid-dev] fix |
Date: |
Thu, 25 Aug 2005 18:28:49 -0700 |
On Thu, 2005-08-25 at 14:24 +0200, Antoine Schmitt wrote:
> Sorry, this is not the best way to do it, but I have fixed a crash
> bug in the current version of fluidsynth. and I don't have CVS these
> days, so I am posting the fix here for Josh (?) to include it in some
> further release.. Thanks and sorry:
>
> In the fluid_ramsfont.c file, the fluid_ramsfont_remove_izone
> function should be :
>
> // start fix
>
> int fluid_ramsfont_remove_izone(fluid_ramsfont_t* sfont,
> unsigned int bank, unsigned int num, fluid_sample_t* sample) {
> int err;
> fluid_rampreset_t* preset = fluid_ramsfont_get_preset(sfont,
> bank, num);
> if (preset == NULL) {
> return FLUID_FAILED;
> }
>
> // Fixed a crash bug : remove the sample from the sfont list after
> // removing the izone (aschmitt august 2005)
> err = fluid_rampreset_remove_izone(preset, sample);
> if (err != FLUID_OK)
> return err;
>
> // now we must remove the sample from sfont->sample
> sfont->sample = fluid_list_remove(sfont->sample, sample);
>
> return FLUID_OK;
> }
>
>
> // end fix
>
No problem, its fine to send it to the list. I'll have a look at it and
apply.
Josh
signature.asc
Description: This is a digitally signed message part