diff options
Diffstat (limited to 'alc/backends/sndio.cpp')
-rw-r--r-- | alc/backends/sndio.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/alc/backends/sndio.cpp b/alc/backends/sndio.cpp index 5b95a8f0..e9f11791 100644 --- a/alc/backends/sndio.cpp +++ b/alc/backends/sndio.cpp @@ -452,16 +452,18 @@ bool SndIOBackendFactory::init() bool SndIOBackendFactory::querySupport(BackendType type) { return (type == BackendType::Playback || type == BackendType::Capture); } -void SndIOBackendFactory::probe(DevProbe type, std::string *outnames) +std::string SndIOBackendFactory::probe(DevProbe type) { + std::string outnames; switch(type) { - case DevProbe::Playback: - case DevProbe::Capture: - /* Includes null char. */ - outnames->append(sndio_device, sizeof(sndio_device)); - break; + case DevProbe::Playback: + case DevProbe::Capture: + /* Includes null char. */ + outnames.append(sndio_device, sizeof(sndio_device)); + break; } + return outnames; } BackendPtr SndIOBackendFactory::createBackend(ALCdevice *device, BackendType type) |