aboutsummaryrefslogtreecommitdiffstats
path: root/alc/backends/null.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-09-15 09:50:28 -0700
committerChris Robinson <[email protected]>2019-09-15 09:50:28 -0700
commitc5a3c52822d0ab8e36c2d3d31936eae1da64049f (patch)
tree0608df414c53e281459c29de73a6ca272f9fc33a /alc/backends/null.cpp
parente4cc77ea237c8a2ca67cb0a1cb28e6d652746590 (diff)
Return and pass more appropriate types for backends
Diffstat (limited to 'alc/backends/null.cpp')
-rw-r--r--alc/backends/null.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/alc/backends/null.cpp b/alc/backends/null.cpp
index ae58cb8b..b6b115f1 100644
--- a/alc/backends/null.cpp
+++ b/alc/backends/null.cpp
@@ -52,8 +52,8 @@ struct NullBackend final : public BackendBase {
int mixerProc();
ALCenum open(const ALCchar *name) override;
- ALCboolean reset() override;
- ALCboolean start() override;
+ bool reset() override;
+ bool start() override;
void stop() override;
std::atomic<bool> mKillNow{true};
@@ -120,25 +120,25 @@ ALCenum NullBackend::open(const ALCchar *name)
return ALC_NO_ERROR;
}
-ALCboolean NullBackend::reset()
+bool NullBackend::reset()
{
SetDefaultWFXChannelOrder(mDevice);
- return ALC_TRUE;
+ return true;
}
-ALCboolean NullBackend::start()
+bool NullBackend::start()
{
try {
mKillNow.store(false, std::memory_order_release);
mThread = std::thread{std::mem_fn(&NullBackend::mixerProc), this};
- return ALC_TRUE;
+ return true;
}
catch(std::exception& e) {
ERR("Failed to start mixing thread: %s\n", e.what());
}
catch(...) {
}
- return ALC_FALSE;
+ return false;
}
void NullBackend::stop()