aboutsummaryrefslogtreecommitdiffstats
path: root/alc/backends
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2021-11-19 20:04:10 -0800
committerChris Robinson <[email protected]>2021-11-19 20:04:10 -0800
commit0c99a6b316b7e52c12a25d50550291562430834d (patch)
tree329d296c689215a6e9a712920189e9e5e853ca42 /alc/backends
parent6e2c1b843132be98c016920d7e790aab69b64272 (diff)
Make the backend pointer part of ALCdevice instead of DeviceBase
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 d661bc46..a3562f54 100644
--- a/alc/backends/base.h
+++ b/alc/backends/base.h
@@ -70,9 +70,8 @@ inline std::chrono::nanoseconds GetDeviceClockTime(DeviceBase *device)
/* Helper to get the device latency from the backend, including any fixed
* latency from post-processing.
*/
-inline ClockLatency GetClockLatency(DeviceBase *device)
+inline ClockLatency GetClockLatency(DeviceBase *device, BackendBase *backend)
{
- BackendBase *backend{device->Backend.get()};
ClockLatency ret{backend->getClockLatency()};
ret.Latency += device->FixedLatency;
return ret;