aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/backends
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2015-09-24 15:54:32 -0700
committerChris Robinson <[email protected]>2015-09-24 15:54:32 -0700
commit30d88cf5477ddb32b2c2295d7b03c4d74bc67e3e (patch)
treeb046f78eac5e1933fb3d94ca6f0a923426e0cc03 /Alc/backends
parent17e2b4b3a5c1778df5c8bea6aa6b74f03918218c (diff)
Use the macros to allocate the wrapper backends
Diffstat (limited to 'Alc/backends')
-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);
}