From feb43a6d9a43ce32b64a311e1d7b74b3127e005e Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 12 Oct 2017 02:06:57 -0700 Subject: [PATCH] Fix getting non-streaming sources' seconds offset with latency --- src/source.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/source.cpp b/src/source.cpp index 8a2ed73..aa0a2fb 100644 --- a/src/source.cpp +++ b/src/source.cpp @@ -762,7 +762,7 @@ std::pair ALSource::getSecOffsetLatency() const if(mContext->hasExtension(SOFT_source_latency)) { ALdouble val[2]; - mContext->alGetSourcedvSOFT(mId, AL_SAMPLE_OFFSET_LATENCY_SOFT, val); + mContext->alGetSourcedvSOFT(mId, AL_SEC_OFFSET_LATENCY_SOFT, val); srcpos = val[0]; latency = Seconds(val[1]); } -- 2.11.4.GIT