aboutsummaryrefslogtreecommitdiffstats
path: root/al
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-12-03 14:31:24 -0800
committerChris Robinson <[email protected]>2023-12-03 14:31:24 -0800
commit859319fa7864ed6a81af1f12c68627ab58bb7a7d (patch)
tree325898299b5eca15d729f83bedba049cc2a4a01a /al
parent2c27d8bc756fd4b134aa16ef9901734e1509062b (diff)
Replace a global function with a member function
Diffstat (limited to 'al')
-rw-r--r--al/source.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/al/source.cpp b/al/source.cpp
index fe5bba40..73a357d4 100644
--- a/al/source.cpp
+++ b/al/source.cpp
@@ -202,7 +202,7 @@ int64_t GetSourceSampleOffset(ALsource *Source, ALCcontext *context, nanoseconds
do {
refcount = device->waitForMix();
- *clocktime = GetDeviceClockTime(device);
+ *clocktime = device->getClockTime();
voice = GetSourceVoice(Source, context);
if(voice)
{
@@ -242,7 +242,7 @@ double GetSourceSecOffset(ALsource *Source, ALCcontext *context, nanoseconds *cl
do {
refcount = device->waitForMix();
- *clocktime = GetDeviceClockTime(device);
+ *clocktime = device->getClockTime();
voice = GetSourceVoice(Source, context);
if(voice)
{