diff options
author | Chris Robinson <[email protected]> | 2018-11-22 14:32:48 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-11-22 14:32:48 -0800 |
commit | d26b5d94677a7091d95972cbfd4337fb36a5e622 (patch) | |
tree | ea4a4a6133be65473914082ed314e4ea98dc20ef /Alc/alc.cpp | |
parent | 84f0f74d0794b38d1b1bb0021090d50f2648e0ce (diff) |
Use proper time types for the device clock time and latency
Diffstat (limited to 'Alc/alc.cpp')
-rw-r--r-- | Alc/alc.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Alc/alc.cpp b/Alc/alc.cpp index a5238aa5..a8ea1c53 100644 --- a/Alc/alc.cpp +++ b/Alc/alc.cpp @@ -3416,10 +3416,10 @@ ALC_API void ALC_APIENTRY alcGetInteger64vSOFT(ALCdevice *device, ALCenum pname, ClockLatency clock{GetClockLatency(device)}; values[i++] = ALC_DEVICE_CLOCK_SOFT; - values[i++] = clock.ClockTime; + values[i++] = clock.ClockTime.count(); values[i++] = ALC_DEVICE_LATENCY_SOFT; - values[i++] = clock.Latency; + values[i++] = clock.Latency.count(); values[i++] = 0; } @@ -3444,7 +3444,7 @@ ALC_API void ALC_APIENTRY alcGetInteger64vSOFT(ALCdevice *device, ALCenum pname, case ALC_DEVICE_LATENCY_SOFT: { std::lock_guard<almtx_t> _{device->BackendLock}; ClockLatency clock{GetClockLatency(device)}; - *values = clock.Latency; + *values = clock.Latency.count(); } break; @@ -3455,8 +3455,8 @@ ALC_API void ALC_APIENTRY alcGetInteger64vSOFT(ALCdevice *device, ALCenum pname, { std::lock_guard<almtx_t> _{device->BackendLock}; ClockLatency clock{GetClockLatency(device)}; - values[0] = clock.ClockTime; - values[1] = clock.Latency; + values[0] = clock.ClockTime.count(); + values[1] = clock.Latency.count(); } break; |