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/null.cpp | |
parent | a727978eb9ea6c5839e87b7de86665fd47c6dc7e (diff) |
Simplify a couple checks
Diffstat (limited to 'Alc/backends/null.cpp')
-rw-r--r-- | Alc/backends/null.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
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) { |