aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Alc/midi/base.c38
-rw-r--r--OpenAL32/alSoundfont.c38
2 files changed, 38 insertions, 38 deletions
diff --git a/Alc/midi/base.c b/Alc/midi/base.c
index db839958..e459b952 100644
--- a/Alc/midi/base.c
+++ b/Alc/midi/base.c
@@ -284,41 +284,3 @@ ALenum MidiSynth_insertSysExEvent(MidiSynth *self, ALuint64 time, const ALbyte *
return AL_NO_ERROR;
}
-
-
-void ALsoundfont_Construct(ALsoundfont *self)
-{
- self->ref = 0;
-
- self->Presets = NULL;
- self->NumPresets = 0;
-
- self->Samples = NULL;
- self->NumSamples = 0;
-
- RWLockInit(&self->Lock);
- self->Mapped = AL_FALSE;
-
- self->id = 0;
-}
-
-void ALsoundfont_Destruct(ALsoundfont *self)
-{
- ALsizei i;
-
- FreeThunkEntry(self->id);
- self->id = 0;
-
- for(i = 0;i < self->NumPresets;i++)
- {
- DecrementRef(&self->Presets[i]->ref);
- self->Presets[i] = NULL;
- }
- free(self->Presets);
- self->Presets = NULL;
- self->NumPresets = 0;
-
- free(self->Samples);
- self->Samples = NULL;
- self->NumSamples = 0;
-}
diff --git a/OpenAL32/alSoundfont.c b/OpenAL32/alSoundfont.c
index 8173526b..dde4b991 100644
--- a/OpenAL32/alSoundfont.c
+++ b/OpenAL32/alSoundfont.c
@@ -350,6 +350,44 @@ done:
}
+void ALsoundfont_Construct(ALsoundfont *self)
+{
+ self->ref = 0;
+
+ self->Presets = NULL;
+ self->NumPresets = 0;
+
+ self->Samples = NULL;
+ self->NumSamples = 0;
+
+ RWLockInit(&self->Lock);
+ self->Mapped = AL_FALSE;
+
+ self->id = 0;
+}
+
+void ALsoundfont_Destruct(ALsoundfont *self)
+{
+ ALsizei i;
+
+ FreeThunkEntry(self->id);
+ self->id = 0;
+
+ for(i = 0;i < self->NumPresets;i++)
+ {
+ DecrementRef(&self->Presets[i]->ref);
+ self->Presets[i] = NULL;
+ }
+ free(self->Presets);
+ self->Presets = NULL;
+ self->NumPresets = 0;
+
+ free(self->Samples);
+ self->Samples = NULL;
+ self->NumSamples = 0;
+}
+
+
/* ReleaseALSoundfonts
*
* Called to destroy any soundfonts that still exist on the device