aboutsummaryrefslogtreecommitdiffstats
path: root/alc/backends/base.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-09-13 12:51:16 -0700
committerChris Robinson <[email protected]>2019-09-13 12:51:16 -0700
commitfcd3bed0c0923ca2eff463e0e6cffc60e00f4a7d (patch)
tree25ddbf3ce4bd3a4097c890aa21c137d683f893f5 /alc/backends/base.cpp
parentf09734b707c3036345d602cc187cc21248a54abd (diff)
Clean up more implicit conversions
Diffstat (limited to 'alc/backends/base.cpp')
-rw-r--r--alc/backends/base.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/alc/backends/base.cpp b/alc/backends/base.cpp
index 095990b7..c4c6052b 100644
--- a/alc/backends/base.cpp
+++ b/alc/backends/base.cpp
@@ -53,7 +53,8 @@ ClockLatency BackendBase::getClockLatency()
* any given time during playback. Without a more accurate measurement from
* the output, this is an okay approximation.
*/
- ret.Latency = std::chrono::seconds{maxi(mDevice->BufferSize-mDevice->UpdateSize, 0)};
+ ret.Latency = std::max(std::chrono::seconds{mDevice->BufferSize-mDevice->UpdateSize},
+ std::chrono::seconds::zero());
ret.Latency /= mDevice->Frequency;
return ret;