aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/backends/pulseaudio.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-12-29 02:16:16 -0800
committerChris Robinson <[email protected]>2018-12-29 02:16:16 -0800
commit71a4d6db6f88cbb735cd959b3dd16d83a27474cf (patch)
tree4aff47e22dc5c8486c7229e23848edb34cc11ada /Alc/backends/pulseaudio.cpp
parent3c637d5fd70e7bdb5dfc79c515359cba3eb0c9af (diff)
Return a unique_ptr for the backend
Diffstat (limited to 'Alc/backends/pulseaudio.cpp')
-rw-r--r--Alc/backends/pulseaudio.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Alc/backends/pulseaudio.cpp b/Alc/backends/pulseaudio.cpp
index 8a089b88..e714ac3f 100644
--- a/Alc/backends/pulseaudio.cpp
+++ b/Alc/backends/pulseaudio.cpp
@@ -1664,12 +1664,12 @@ void PulseBackendFactory::probe(DevProbe type, std::string *outnames)
}
}
-BackendBase *PulseBackendFactory::createBackend(ALCdevice *device, BackendType type)
+BackendPtr PulseBackendFactory::createBackend(ALCdevice *device, BackendType type)
{
if(type == BackendType::Playback)
- return new PulsePlayback{device};
+ return BackendPtr{new PulsePlayback{device}};
if(type == BackendType::Capture)
- return new PulseCapture{device};
+ return BackendPtr{new PulseCapture{device}};
return nullptr;
}