diff options
Diffstat (limited to 'Alc/midi/dummy.c')
-rw-r--r-- | Alc/midi/dummy.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Alc/midi/dummy.c b/Alc/midi/dummy.c index a04c1c9b..23c0d2cb 100644 --- a/Alc/midi/dummy.c +++ b/Alc/midi/dummy.c @@ -64,13 +64,13 @@ static void DSynth_process(DSynth *self, ALuint SamplesToDo, ALfloatBUFFERSIZE*r MidiSynth *DSynth_create(ALCdevice *device) { - DSynth *synth = DSynth_New(sizeof(*synth)); + DSynth *synth; + + NEW_OBJ(synth, DSynth)(device); if(!synth) { ERR("Failed to allocate DSynth\n"); return NULL; } - memset(synth, 0, sizeof(*synth)); - DSynth_Construct(synth, device); return STATIC_CAST(MidiSynth, synth); } |