diff options
author | Chris Robinson <[email protected]> | 2013-12-23 03:23:42 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2013-12-23 03:23:42 -0800 |
commit | d7de86966d677366d8514a32be46b3040d9bc902 (patch) | |
tree | 81bc0fd23772a09179ed7973ae3835e70c0bf49e /Alc | |
parent | 0df5eb90ea0d244050f71c5f71167c46cbc17355 (diff) |
Add methods to get and set a preset object's preset and bank numbers
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/ALc.c | 3 | ||||
-rw-r--r-- | Alc/midi/base.c | 3 |
2 files changed, 6 insertions, 0 deletions
@@ -290,6 +290,9 @@ static const ALCfunction alcFunctions[] = { DECL(alGenPresetsSOFT), DECL(alDeletePresetsSOFT), DECL(alIsPresetSOFT), + DECL(alPresetiSOFT), + DECL(alPresetivSOFT), + DECL(alGetPresetivSOFT), DECL(alGenInstrumentsSOFT), DECL(alDeleteInstrumentsSOFT), DECL(alIsInstrumentSOFT), diff --git a/Alc/midi/base.c b/Alc/midi/base.c index b7e94fd2..0d81952b 100644 --- a/Alc/midi/base.c +++ b/Alc/midi/base.c @@ -425,6 +425,9 @@ void ALsfpreset_Construct(ALsfpreset *self) { self->ref = 0; + self->Preset = 0; + self->Bank = 0; + self->Zones = NULL; self->NumZones = 0; |