aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/backends/winmm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/backends/winmm.cpp')
-rw-r--r--Alc/backends/winmm.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Alc/backends/winmm.cpp b/Alc/backends/winmm.cpp
index dad505f4..3c9aa776 100644
--- a/Alc/backends/winmm.cpp
+++ b/Alc/backends/winmm.cpp
@@ -634,12 +634,12 @@ void WinMMBackendFactory::probe(DevProbe type, std::string *outnames)
}
}
-BackendBase *WinMMBackendFactory::createBackend(ALCdevice *device, BackendType type)
+BackendPtr WinMMBackendFactory::createBackend(ALCdevice *device, BackendType type)
{
if(type == BackendType::Playback)
- return new WinMMPlayback{device};
+ return BackendPtr{new WinMMPlayback{device}};
if(type == BackendType::Capture)
- return new WinMMCapture{device};
+ return BackendPtr{new WinMMCapture{device}};
return nullptr;
}