aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/backends/pulseaudio.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-11-22 14:32:48 -0800
committerChris Robinson <[email protected]>2018-11-22 14:32:48 -0800
commitd26b5d94677a7091d95972cbfd4337fb36a5e622 (patch)
treeea4a4a6133be65473914082ed314e4ea98dc20ef /Alc/backends/pulseaudio.cpp
parent84f0f74d0794b38d1b1bb0021090d50f2648e0ce (diff)
Use proper time types for the device clock time and latency
Diffstat (limited to 'Alc/backends/pulseaudio.cpp')
-rw-r--r--Alc/backends/pulseaudio.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/backends/pulseaudio.cpp b/Alc/backends/pulseaudio.cpp
index d0c1c229..9563cdd4 100644
--- a/Alc/backends/pulseaudio.cpp
+++ b/Alc/backends/pulseaudio.cpp
@@ -1213,7 +1213,7 @@ ClockLatency PulsePlayback_getClockLatency(PulsePlayback *self)
}
else if(UNLIKELY(neg))
latency = 0;
- ret.Latency = (ALint64)minu64(latency, U64(0x7fffffffffffffff)/1000) * 1000;
+ ret.Latency = std::chrono::microseconds{latency};
return ret;
}
@@ -1714,7 +1714,7 @@ ClockLatency PulseCapture_getClockLatency(PulseCapture *self)
}
else if(UNLIKELY(neg))
latency = 0;
- ret.Latency = (ALint64)minu64(latency, U64(0x7fffffffffffffff)/1000) * 1000;
+ ret.Latency = std::chrono::microseconds{latency};
return ret;
}