diff options
Diffstat (limited to 'Alc/backends/winmm.c')
-rw-r--r-- | Alc/backends/winmm.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/Alc/backends/winmm.c b/Alc/backends/winmm.c index 03805ab8..e4ea151e 100644 --- a/Alc/backends/winmm.c +++ b/Alc/backends/winmm.c @@ -780,25 +780,15 @@ static ALCbackend* ALCwinmmBackendFactory_createBackend(ALCwinmmBackendFactory* if(type == ALCbackend_Playback) { ALCwinmmPlayback *backend; - - backend = ALCwinmmPlayback_New(sizeof(*backend)); + NEW_OBJ(backend, ALCwinmmPlayback)(device); if(!backend) return NULL; - memset(backend, 0, sizeof(*backend)); - - ALCwinmmPlayback_Construct(backend, device); - return STATIC_CAST(ALCbackend, backend); } if(type == ALCbackend_Capture) { ALCwinmmCapture *backend; - - backend = ALCwinmmCapture_New(sizeof(*backend)); + NEW_OBJ(backend, ALCwinmmCapture)(device); if(!backend) return NULL; - memset(backend, 0, sizeof(*backend)); - - ALCwinmmCapture_Construct(backend, device); - return STATIC_CAST(ALCbackend, backend); } |