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 /alc/backends/alsa.cpp | |
parent | 2c27d8bc756fd4b134aa16ef9901734e1509062b (diff) |
Replace a global function with a member function
Diffstat (limited to 'alc/backends/alsa.cpp')
-rw-r--r-- | alc/backends/alsa.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/alc/backends/alsa.cpp b/alc/backends/alsa.cpp index 0d9ff30d..5aae834a 100644 --- a/alc/backends/alsa.cpp +++ b/alc/backends/alsa.cpp @@ -852,7 +852,7 @@ ClockLatency AlsaPlayback::getClockLatency() ClockLatency ret; std::lock_guard<std::mutex> _{mMutex}; - ret.ClockTime = GetDeviceClockTime(mDevice); + ret.ClockTime = mDevice->getClockTime(); snd_pcm_sframes_t delay{}; int err{snd_pcm_delay(mPcmHandle, &delay)}; if(err < 0) @@ -1170,7 +1170,7 @@ ClockLatency AlsaCapture::getClockLatency() { ClockLatency ret; - ret.ClockTime = GetDeviceClockTime(mDevice); + ret.ClockTime = mDevice->getClockTime(); snd_pcm_sframes_t delay{}; int err{snd_pcm_delay(mPcmHandle, &delay)}; if(err < 0) |