diff options
author | Chris Robinson <[email protected]> | 2023-12-03 14:31:24 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2023-12-03 14:31:24 -0800 |
commit | 859319fa7864ed6a81af1f12c68627ab58bb7a7d (patch) | |
tree | 325898299b5eca15d729f83bedba049cc2a4a01a /al | |
parent | 2c27d8bc756fd4b134aa16ef9901734e1509062b (diff) |
Replace a global function with a member function
Diffstat (limited to 'al')
-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 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) { |