aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/midi/sf2load.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/midi/sf2load.c')
-rw-r--r--Alc/midi/sf2load.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Alc/midi/sf2load.c b/Alc/midi/sf2load.c
index f0beeabe..b32319b3 100644
--- a/Alc/midi/sf2load.c
+++ b/Alc/midi/sf2load.c
@@ -848,12 +848,12 @@ static void fillZone(ALfontsound *sound, ALCcontext *context, const GenModList *
value = getLoopMode(value);
ALfontsound_setPropi(sound, context, param, value);
}
- else if(gen->mGenerator < 256)
+ else
{
- static ALboolean warned[256];
- if(!warned[gen->mGenerator])
+ static ALuint warned[65536/32];
+ if(!(warned[gen->mGenerator/32]&(1<<(gen->mGenerator&31))))
{
- warned[gen->mGenerator] = AL_TRUE;
+ warned[gen->mGenerator/32] |= 1<<(gen->mGenerator&31);
ERR("Unhandled generator %d\n", gen->mGenerator);
}
}