aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/midi/base.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-03-22 01:49:03 -0700
committerChris Robinson <[email protected]>2014-03-22 01:49:03 -0700
commit22f6eb18a24c91e0e8a9c060de5690533e075429 (patch)
tree5739f13936fee434e89ab4a581c3179c0cd71692 /Alc/midi/base.h
parentd8bfd12d313372830f0e0b34fafcaa244395cf3c (diff)
Use a void* for the MidiSynth Delete method param
Diffstat (limited to 'Alc/midi/base.h')
-rw-r--r--Alc/midi/base.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/Alc/midi/base.h b/Alc/midi/base.h
index 4d13a054..1e1aca4f 100644
--- a/Alc/midi/base.h
+++ b/Alc/midi/base.h
@@ -88,7 +88,7 @@ struct MidiSynthVtable {
void (*const update)(MidiSynth *self, ALCdevice *device);
void (*const process)(MidiSynth *self, ALuint samples, ALfloat (*restrict DryBuffer)[BUFFERSIZE]);
- void (*const Delete)(MidiSynth *self);
+ void (*const Delete)(void *ptr);
};
#define DEFINE_MIDISYNTH_VTABLE(T) \
@@ -100,7 +100,8 @@ DECLARE_THUNK(T, MidiSynth, void, stop) \
DECLARE_THUNK(T, MidiSynth, void, reset) \
DECLARE_THUNK1(T, MidiSynth, void, update, ALCdevice*) \
DECLARE_THUNK2(T, MidiSynth, void, process, ALuint, ALfloatBUFFERSIZE*restrict) \
-DECLARE_THUNK(T, MidiSynth, void, Delete) \
+static void T##_MidiSynth_Delete(void *ptr) \
+{ T##_Delete(STATIC_UPCAST(T, MidiSynth, ptr)); } \
\
static const struct MidiSynthVtable T##_MidiSynth_vtable = { \
T##_MidiSynth_Destruct, \