diff options
Diffstat (limited to 'Alc/backends/sndio.cpp')
-rw-r--r-- | Alc/backends/sndio.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Alc/backends/sndio.cpp b/Alc/backends/sndio.cpp index a592632c..dd2cb8a8 100644 --- a/Alc/backends/sndio.cpp +++ b/Alc/backends/sndio.cpp @@ -492,11 +492,11 @@ void SndIOBackendFactory::probe(DevProbe type, std::string *outnames) } } -BackendBase *SndIOBackendFactory::createBackend(ALCdevice *device, BackendType type) +BackendPtr SndIOBackendFactory::createBackend(ALCdevice *device, BackendType type) { if(type == BackendType::Playback) - return new SndioPlayback{device}; + return BackendPtr{new SndioPlayback{device}}; if(type == BackendType::Capture) - return new SndioCapture{device}; + return BackendPtr{new SndioCapture{device}}; return nullptr; } |