aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/midi
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-01-02 09:09:57 -0800
committerChris Robinson <[email protected]>2014-01-02 09:09:57 -0800
commit3ff33e2f79a7b251ca7709704e995385c792e799 (patch)
tree5a1da1bd07bdf13cece77aa7b7b77f21fb836f92 /Alc/midi
parente74e3e2b2390a624178f9ee67e8ba89b70d74229 (diff)
Update the soundfont preset count after loading a soundfont
Diffstat (limited to 'Alc/midi')
-rw-r--r--Alc/midi/sf2load.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Alc/midi/sf2load.c b/Alc/midi/sf2load.c
index 43f960c6..30c4c737 100644
--- a/Alc/midi/sf2load.c
+++ b/Alc/midi/sf2load.c
@@ -1340,6 +1340,7 @@ ALboolean loadSf2(Reader *stream, ALsoundfont *soundfont, ALCcontext *context)
for(i = 0;i < pids.ids_size;i++)
IncrementRef(&presets[i]->ref);
presets = ExchangePtr((XchgPtr*)&soundfont->Presets, presets);
+ ExchangeInt(&soundfont->NumPresets, pids.ids_size);
free(presets);
}