diff options
Diffstat (limited to 'Alc/backends/portaudio.cpp')
-rw-r--r-- | Alc/backends/portaudio.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Alc/backends/portaudio.cpp b/Alc/backends/portaudio.cpp index ae01da70..258f981e 100644 --- a/Alc/backends/portaudio.cpp +++ b/Alc/backends/portaudio.cpp @@ -467,12 +467,12 @@ void PortBackendFactory::probe(DevProbe type, std::string *outnames) } } -BackendBase *PortBackendFactory::createBackend(ALCdevice *device, BackendType type) +BackendPtr PortBackendFactory::createBackend(ALCdevice *device, BackendType type) { if(type == BackendType::Playback) - return new PortPlayback{device}; + return BackendPtr{new PortPlayback{device}}; if(type == BackendType::Capture) - return new PortCapture{device}; + return BackendPtr{new PortCapture{device}}; return nullptr; } |