diff options
author | Chris Robinson <[email protected]> | 2018-12-29 02:16:16 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-12-29 02:16:16 -0800 |
commit | 71a4d6db6f88cbb735cd959b3dd16d83a27474cf (patch) | |
tree | 4aff47e22dc5c8486c7229e23848edb34cc11ada /Alc/backends/wasapi.cpp | |
parent | 3c637d5fd70e7bdb5dfc79c515359cba3eb0c9af (diff) |
Return a unique_ptr for the backend
Diffstat (limited to 'Alc/backends/wasapi.cpp')
-rw-r--r-- | Alc/backends/wasapi.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Alc/backends/wasapi.cpp b/Alc/backends/wasapi.cpp index ca4bdbd3..51a2f58d 100644 --- a/Alc/backends/wasapi.cpp +++ b/Alc/backends/wasapi.cpp @@ -1810,12 +1810,12 @@ void WasapiBackendFactory::probe(DevProbe type, std::string *outnames) } } -BackendBase *WasapiBackendFactory::createBackend(ALCdevice *device, BackendType type) +BackendPtr WasapiBackendFactory::createBackend(ALCdevice *device, BackendType type) { if(type == BackendType::Playback) - return new WasapiPlayback{device}; + return BackendPtr{new WasapiPlayback{device}}; if(type == BackendType::Capture) - return new WasapiCapture{device}; + return BackendPtr{new WasapiCapture{device}}; return nullptr; } |