diff options
Diffstat (limited to 'alc/backends/null.cpp')
-rw-r--r-- | alc/backends/null.cpp | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/alc/backends/null.cpp b/alc/backends/null.cpp index 4cdebf57..1b90a1ee 100644 --- a/alc/backends/null.cpp +++ b/alc/backends/null.cpp @@ -154,17 +154,19 @@ bool NullBackendFactory::init() bool NullBackendFactory::querySupport(BackendType type) { return (type == BackendType::Playback); } -void NullBackendFactory::probe(DevProbe type, std::string *outnames) +std::string NullBackendFactory::probe(DevProbe type) { + std::string outnames; switch(type) { - case DevProbe::Playback: - /* Includes null char. */ - outnames->append(nullDevice, sizeof(nullDevice)); - break; - case DevProbe::Capture: - break; + case DevProbe::Playback: + /* Includes null char. */ + outnames.append(nullDevice, sizeof(nullDevice)); + break; + case DevProbe::Capture: + break; } + return outnames; } BackendPtr NullBackendFactory::createBackend(ALCdevice *device, BackendType type) |