mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-12-11 05:11:33 +00:00
Rename p3 in fixup_igen to inst_list
This commit is contained in:
parent
fd3e9bdc21
commit
f694d41a0e
1 changed files with 5 additions and 4 deletions
|
@ -2193,7 +2193,8 @@ static int fixup_pgen(SFData *sf)
|
||||||
/* "fixup" (sample # -> sample ptr) sample references in instrument list */
|
/* "fixup" (sample # -> sample ptr) sample references in instrument list */
|
||||||
static int fixup_igen(SFData *sf)
|
static int fixup_igen(SFData *sf)
|
||||||
{
|
{
|
||||||
fluid_list_t *p, *p2, *p3;
|
fluid_list_t *p, *p2;
|
||||||
|
fluid_list_t *inst_list;
|
||||||
SFZone *z;
|
SFZone *z;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
@ -2211,16 +2212,16 @@ static int fixup_igen(SFData *sf)
|
||||||
if((i = FLUID_POINTER_TO_INT(z->instsamp)))
|
if((i = FLUID_POINTER_TO_INT(z->instsamp)))
|
||||||
{
|
{
|
||||||
/* load sample # */
|
/* load sample # */
|
||||||
p3 = fluid_list_nth(sf->sample, i - 1);
|
inst_list = fluid_list_nth(sf->sample, i - 1);
|
||||||
|
|
||||||
if(!p3)
|
if(!inst_list)
|
||||||
{
|
{
|
||||||
FLUID_LOG(FLUID_ERR, "Instrument '%s': Invalid sample reference",
|
FLUID_LOG(FLUID_ERR, "Instrument '%s': Invalid sample reference",
|
||||||
((SFInst *)(p->data))->name);
|
((SFInst *)(p->data))->name);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
z->instsamp = p3;
|
z->instsamp = inst_list;
|
||||||
}
|
}
|
||||||
|
|
||||||
p2 = fluid_list_next(p2);
|
p2 = fluid_list_next(p2);
|
||||||
|
|
Loading…
Reference in a new issue