diff options
author | Chris Robinson <[email protected]> | 2015-09-24 15:54:32 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2015-09-24 15:54:32 -0700 |
commit | 30d88cf5477ddb32b2c2295d7b03c4d74bc67e3e (patch) | |
tree | b046f78eac5e1933fb3d94ca6f0a923426e0cc03 /Alc/backends/base.c | |
parent | 17e2b4b3a5c1778df5c8bea6aa6b74f03918218c (diff) |
Use the macros to allocate the wrapper backends
Diffstat (limited to 'Alc/backends/base.c')
-rw-r--r-- | Alc/backends/base.c | 8 |
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); } |