diff options
author | Chris Robinson <[email protected]> | 2019-09-13 12:51:16 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-09-13 12:51:16 -0700 |
commit | fcd3bed0c0923ca2eff463e0e6cffc60e00f4a7d (patch) | |
tree | 25ddbf3ce4bd3a4097c890aa21c137d683f893f5 /alc/backends/base.cpp | |
parent | f09734b707c3036345d602cc187cc21248a54abd (diff) |
Clean up more implicit conversions
Diffstat (limited to 'alc/backends/base.cpp')
-rw-r--r-- | alc/backends/base.cpp | 3 |
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; |