aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/midi/soft.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2015-10-20 11:20:15 -0700
committerChris Robinson <[email protected]>2015-10-20 11:20:15 -0700
commitd9a77a7edc309f399ce257f4b69d240008f47b49 (patch)
tree5e3408729b77d079a3d703fe359a81711adf4483 /Alc/midi/soft.c
parentacb37edc4fd152eb5c405cff2e865e63fb16b08a (diff)
Use NEW_OBJ in a few more places
Diffstat (limited to 'Alc/midi/soft.c')
-rw-r--r--Alc/midi/soft.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Alc/midi/soft.c b/Alc/midi/soft.c
index 688924d4..a000266b 100644
--- a/Alc/midi/soft.c
+++ b/Alc/midi/soft.c
@@ -129,12 +129,11 @@ MidiSynth *SSynth_create(ALCdevice *device)
return NULL;
}
- synth = SSynth_New(sizeof(*synth));
+ NEW_OBJ(synth, SSynth)(device);
if(!synth)
{
ERR("Failed to allocate SSynth\n");
return NULL;
}
- SSynth_Construct(synth, device);
return STATIC_CAST(MidiSynth, synth);
}