diff options
author | Chris Robinson <[email protected]> | 2018-12-29 02:21:53 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-12-29 02:21:53 -0800 |
commit | 63fc74beaac497d35bd74cb202e3f4ffb2dbe7fb (patch) | |
tree | 9c3000932649cc6bc84a58695f3aa95d40a64e07 /Alc/backends/loopback.cpp | |
parent | 71a4d6db6f88cbb735cd959b3dd16d83a27474cf (diff) |
Don't bother with an explicit Loopback backend type
Diffstat (limited to 'Alc/backends/loopback.cpp')
-rw-r--r-- | Alc/backends/loopback.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/Alc/backends/loopback.cpp b/Alc/backends/loopback.cpp index 6404d413..5d133d8e 100644 --- a/Alc/backends/loopback.cpp +++ b/Alc/backends/loopback.cpp @@ -64,18 +64,14 @@ void LoopbackBackend::stop() bool LoopbackBackendFactory::init() { return true; } -bool LoopbackBackendFactory::querySupport(BackendType type) -{ return (type == BackendType::Loopback); } +bool LoopbackBackendFactory::querySupport(BackendType UNUSED(type)) +{ return true; } void LoopbackBackendFactory::probe(DevProbe, std::string*) { } -BackendPtr LoopbackBackendFactory::createBackend(ALCdevice *device, BackendType type) -{ - if(type == BackendType::Loopback) - return BackendPtr{new LoopbackBackend{device}}; - return nullptr; -} +BackendPtr LoopbackBackendFactory::createBackend(ALCdevice *device, BackendType UNUSED(type)) +{ return BackendPtr{new LoopbackBackend{device}}; } BackendFactory &LoopbackBackendFactory::getFactory() { |