aboutsummaryrefslogtreecommitdiffstats
path: root/al/source.cpp
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 /al/source.cpp
parent6e2c1b843132be98c016920d7e790aab69b64272 (diff)
Make the backend pointer part of ALCdevice instead of DeviceBase
Diffstat (limited to 'al/source.cpp')
-rw-r--r--al/source.cpp4
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();