aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/backends/base.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/backends/base.c')
-rw-r--r--Alc/backends/base.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/Alc/backends/base.c b/Alc/backends/base.c
index b800335a..ebeb31bf 100644
--- a/Alc/backends/base.c
+++ b/Alc/backends/base.c
@@ -195,11 +195,9 @@ ALCbackend *create_backend_wrapper(ALCdevice *device, const BackendFuncs *funcs,
{
PlaybackWrapper *backend;
- backend = PlaybackWrapper_New(sizeof(*backend));
+ NEW_OBJ(backend, PlaybackWrapper)(device, funcs);
if(!backend) return NULL;
- PlaybackWrapper_Construct(backend, device, funcs);
-
return STATIC_CAST(ALCbackend, backend);
}
@@ -207,11 +205,9 @@ ALCbackend *create_backend_wrapper(ALCdevice *device, const BackendFuncs *funcs,
{
CaptureWrapper *backend;
- backend = CaptureWrapper_New(sizeof(*backend));
+ NEW_OBJ(backend, CaptureWrapper)(device, funcs);
if(!backend) return NULL;
- CaptureWrapper_Construct(backend, device, funcs);
-
return STATIC_CAST(ALCbackend, backend);
}