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 /al/source.cpp | |
parent | 6e2c1b843132be98c016920d7e790aab69b64272 (diff) |
Make the backend pointer part of ALCdevice instead of DeviceBase
Diffstat (limited to 'al/source.cpp')
-rw-r--r-- | al/source.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/al/source.cpp b/al/source.cpp index 734a3308..7ba08970 100644 --- a/al/source.cpp +++ b/al/source.cpp @@ -1923,7 +1923,7 @@ bool GetSourcedv(ALsource *Source, ALCcontext *Context, SourceProp prop, const a values[0] = GetSourceSecOffset(Source, Context, &srcclock); { std::lock_guard<std::mutex> _{device->StateLock}; - clocktime = GetClockLatency(device); + clocktime = GetClockLatency(device, device->Backend.get()); } if(srcclock == clocktime.ClockTime) values[1] = static_cast<double>(clocktime.Latency.count()) / 1000000000.0; @@ -2216,7 +2216,7 @@ bool GetSourcei64v(ALsource *Source, ALCcontext *Context, SourceProp prop, const values[0] = GetSourceSampleOffset(Source, Context, &srcclock); { std::lock_guard<std::mutex> _{device->StateLock}; - clocktime = GetClockLatency(device); + clocktime = GetClockLatency(device, device->Backend.get()); } if(srcclock == clocktime.ClockTime) values[1] = clocktime.Latency.count(); |