aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2013-12-19 04:19:03 -0800
committerChris Robinson <[email protected]>2013-12-19 04:19:03 -0800
commit1bd828603e266db7b08a3ca5670e7cd2575357a4 (patch)
treeff2a51d273860211f513bb1a79a4b836d52e4316 /Alc
parent03a6bf22a52a4b1216f33dd2d9bddaa9f79e6a01 (diff)
Add functions to set a soundfont's sample data
Diffstat (limited to 'Alc')
-rw-r--r--Alc/ALc.c3
-rw-r--r--Alc/midi/base.c2
2 files changed, 5 insertions, 0 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 9dcc5be0..15bc62f1 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -284,6 +284,9 @@ static const ALCfunction alcFunctions[] = {
DECL(alGenSoundfontsSOFT),
DECL(alDeleteSoundfontsSOFT),
DECL(alIsSoundfontSOFT),
+ DECL(alSoundfontSamplesSOFT),
+ DECL(alSoundfontMapSamplesSOFT),
+ DECL(alSoundfontUnmapSamplesSOFT),
DECL(alGenPresetsSOFT),
DECL(alDeletePresetsSOFT),
DECL(alIsPresetSOFT),
diff --git a/Alc/midi/base.c b/Alc/midi/base.c
index 46d4bd76..f39aaba3 100644
--- a/Alc/midi/base.c
+++ b/Alc/midi/base.c
@@ -429,6 +429,8 @@ void ALsoundfont_Construct(ALsoundfont *self)
self->Samples = NULL;
self->NumSamples = 0;
+ self->Mapped = AL_FALSE;
+
self->id = 0;
}