aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/backends
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/backends')
-rw-r--r--Alc/backends/base.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/Alc/backends/base.h b/Alc/backends/base.h
index b086104d..2498bcd2 100644
--- a/Alc/backends/base.h
+++ b/Alc/backends/base.h
@@ -21,9 +21,8 @@ inline std::chrono::nanoseconds GetDeviceClockTime(ALCdevice *device)
{
using std::chrono::seconds;
using std::chrono::nanoseconds;
- using std::chrono::duration_cast;
- auto ns = duration_cast<nanoseconds>(seconds{device->SamplesDone}) / device->Frequency;
+ auto ns = nanoseconds{seconds{device->SamplesDone}} / device->Frequency;
return device->ClockBase + ns;
}