diff options
author | Chris Robinson <[email protected]> | 2021-11-19 20:04:10 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2021-11-19 20:04:10 -0800 |
commit | 0c99a6b316b7e52c12a25d50550291562430834d (patch) | |
tree | 329d296c689215a6e9a712920189e9e5e853ca42 /alc/alc.cpp | |
parent | 6e2c1b843132be98c016920d7e790aab69b64272 (diff) |
Make the backend pointer part of ALCdevice instead of DeviceBase
Diffstat (limited to 'alc/alc.cpp')
-rw-r--r-- | alc/alc.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/alc/alc.cpp b/alc/alc.cpp index 36f726fc..1b62e042 100644 --- a/alc/alc.cpp +++ b/alc/alc.cpp @@ -2817,7 +2817,7 @@ START_API_FUNC values[i++] = ALC_OUTPUT_LIMITER_SOFT; values[i++] = dev->Limiter ? ALC_TRUE : ALC_FALSE; - ClockLatency clock{GetClockLatency(dev.get())}; + ClockLatency clock{GetClockLatency(dev.get(), dev->Backend.get())}; values[i++] = ALC_DEVICE_CLOCK_SOFT; values[i++] = clock.ClockTime.count(); @@ -2843,7 +2843,7 @@ START_API_FUNC break; case ALC_DEVICE_LATENCY_SOFT: - *values = GetClockLatency(dev.get()).Latency.count(); + *values = GetClockLatency(dev.get(), dev->Backend.get()).Latency.count(); break; case ALC_DEVICE_CLOCK_LATENCY_SOFT: @@ -2851,7 +2851,7 @@ START_API_FUNC alcSetError(dev.get(), ALC_INVALID_VALUE); else { - ClockLatency clock{GetClockLatency(dev.get())}; + ClockLatency clock{GetClockLatency(dev.get(), dev->Backend.get())}; values[0] = clock.ClockTime.count(); values[1] = clock.Latency.count(); } |