summaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2013-12-23 03:23:42 -0800
committerChris Robinson <[email protected]>2013-12-23 03:23:42 -0800
commitd7de86966d677366d8514a32be46b3040d9bc902 (patch)
tree81bc0fd23772a09179ed7973ae3835e70c0bf49e /Alc
parent0df5eb90ea0d244050f71c5f71167c46cbc17355 (diff)
Add methods to get and set a preset object's preset and bank numbers
Diffstat (limited to 'Alc')
-rw-r--r--Alc/ALc.c3
-rw-r--r--Alc/midi/base.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 15bc62f1..d55ab4b9 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -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;