aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/backends/alsa.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/backends/alsa.cpp')
-rw-r--r--Alc/backends/alsa.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Alc/backends/alsa.cpp b/Alc/backends/alsa.cpp
index 543c2bee..7ff26a33 100644
--- a/Alc/backends/alsa.cpp
+++ b/Alc/backends/alsa.cpp
@@ -1292,12 +1292,12 @@ void AlsaBackendFactory::probe(DevProbe type, std::string *outnames)
}
}
-BackendBase *AlsaBackendFactory::createBackend(ALCdevice *device, BackendType type)
+BackendPtr AlsaBackendFactory::createBackend(ALCdevice *device, BackendType type)
{
if(type == BackendType::Playback)
- return new AlsaPlayback{device};
+ return BackendPtr{new AlsaPlayback{device}};
if(type == BackendType::Capture)
- return new AlsaCapture{device};
+ return BackendPtr{new AlsaCapture{device}};
return nullptr;
}