aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/backends/dsound.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/backends/dsound.cpp')
-rw-r--r--Alc/backends/dsound.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Alc/backends/dsound.cpp b/Alc/backends/dsound.cpp
index bdb9cf28..aa0f80df 100644
--- a/Alc/backends/dsound.cpp
+++ b/Alc/backends/dsound.cpp
@@ -949,11 +949,11 @@ void DSoundBackendFactory::probe(DevProbe type, std::string *outnames)
CoUninitialize();
}
-BackendBase *DSoundBackendFactory::createBackend(ALCdevice *device, BackendType type)
+BackendPtr DSoundBackendFactory::createBackend(ALCdevice *device, BackendType type)
{
if(type == BackendType::Playback)
- return new DSoundPlayback{device};
+ return BackendPtr{new DSoundPlayback{device}};
if(type == BackendType::Capture)
- return new DSoundCapture{device};
+ return BackendPtr{new DSoundCapture{device}};
return nullptr;
}