diff options
author | Chris Robinson <[email protected]> | 2014-01-02 09:09:57 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-01-02 09:09:57 -0800 |
commit | 3ff33e2f79a7b251ca7709704e995385c792e799 (patch) | |
tree | 5a1da1bd07bdf13cece77aa7b7b77f21fb836f92 /Alc/midi | |
parent | e74e3e2b2390a624178f9ee67e8ba89b70d74229 (diff) |
Update the soundfont preset count after loading a soundfont
Diffstat (limited to 'Alc/midi')
-rw-r--r-- | Alc/midi/sf2load.c | 1 |
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); } |