diff options
Diffstat (limited to 'alc/backends/jack.cpp')
-rw-r--r-- | alc/backends/jack.cpp | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/alc/backends/jack.cpp b/alc/backends/jack.cpp index 0cad064d..f784fed9 100644 --- a/alc/backends/jack.cpp +++ b/alc/backends/jack.cpp @@ -504,18 +504,19 @@ bool JackBackendFactory::init() bool JackBackendFactory::querySupport(BackendType type) { return (type == BackendType::Playback); } -void JackBackendFactory::probe(DevProbe type, std::string *outnames) +std::string JackBackendFactory::probe(DevProbe type) { + std::string outnames; switch(type) { - case DevProbe::Playback: - /* Includes null char. */ - outnames->append(jackDevice, sizeof(jackDevice)); - break; - - case DevProbe::Capture: - break; + case DevProbe::Playback: + /* Includes null char. */ + outnames.append(jackDevice, sizeof(jackDevice)); + break; + case DevProbe::Capture: + break; } + return outnames; } BackendPtr JackBackendFactory::createBackend(ALCdevice *device, BackendType type) |