diff options
author | Chris Robinson <[email protected]> | 2014-06-30 04:03:50 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-06-30 04:03:50 -0700 |
commit | c06bb88756b60b5d1fe7b9c30d629bad75a6f68b (patch) | |
tree | f3b8295f952e42c0610d033fc01bdcdea984f0d7 /Alc/midi/sf2load.c | |
parent | 8577df76c444a17b7a79e2393b67dc6041f34aac (diff) |
Warn about all unhandled soundfont generators
Diffstat (limited to 'Alc/midi/sf2load.c')
-rw-r--r-- | Alc/midi/sf2load.c | 8 |
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); } } |