diff options
author | Chris Robinson <[email protected]> | 2018-11-15 23:58:34 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-11-15 23:58:34 -0800 |
commit | 7a06a54af76a421dfe34d6ffa1759448c472da75 (patch) | |
tree | eee2d40b97a11323f0d91a02a64dc2a20c1b9151 /Alc/backends | |
parent | a727978eb9ea6c5839e87b7de86665fd47c6dc7e (diff) |
Simplify a couple checks
Diffstat (limited to 'Alc/backends')
-rw-r--r-- | Alc/backends/loopback.cpp | 13 | ||||
-rw-r--r-- | Alc/backends/null.cpp | 10 |
2 files changed, 5 insertions, 18 deletions
diff --git a/Alc/backends/loopback.cpp b/Alc/backends/loopback.cpp index 85c0a26e..843cb18e 100644 --- a/Alc/backends/loopback.cpp +++ b/Alc/backends/loopback.cpp @@ -88,20 +88,13 @@ void ALCloopback_stop(ALCloopback* UNUSED(self)) bool LoopbackBackendFactory::init() -{ - return true; -} +{ return true; } bool LoopbackBackendFactory::querySupport(ALCbackend_Type type) -{ - if(type == ALCbackend_Loopback) - return true; - return false; -} +{ return (type == ALCbackend_Loopback); } void LoopbackBackendFactory::probe(enum DevProbe, std::string*) -{ -} +{ } ALCbackend *LoopbackBackendFactory::createBackend(ALCdevice *device, ALCbackend_Type type) { diff --git a/Alc/backends/null.cpp b/Alc/backends/null.cpp index d376ccdf..c9ba8de7 100644 --- a/Alc/backends/null.cpp +++ b/Alc/backends/null.cpp @@ -179,16 +179,10 @@ void ALCnullBackend_stop(ALCnullBackend *self) bool NullBackendFactory::init() -{ - return true; -} +{ return true; } bool NullBackendFactory::querySupport(ALCbackend_Type type) -{ - if(type == ALCbackend_Playback) - return true; - return false; -} +{ return (type == ALCbackend_Playback); } void NullBackendFactory::probe(enum DevProbe type, std::string *outnames) { |