From 6b28a05e74307196d915591e2d0d09fafd054f3c Mon Sep 17 00:00:00 2001 From: davilla Date: Sun, 10 Feb 2013 19:53:55 -0500 Subject: [PATCH] fixed, CSoftAEStream::GetCacheTime was calculated wrong --- xbmc/cores/AudioEngine/Engines/SoftAE/SoftAEStream.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xbmc/cores/AudioEngine/Engines/SoftAE/SoftAEStream.cpp b/xbmc/cores/AudioEngine/Engines/SoftAE/SoftAEStream.cpp index 37aaab8d5ea19..8054b1979069d 100644 --- a/xbmc/cores/AudioEngine/Engines/SoftAE/SoftAEStream.cpp +++ b/xbmc/cores/AudioEngine/Engines/SoftAE/SoftAEStream.cpp @@ -496,7 +496,7 @@ double CSoftAEStream::GetCacheTime() double time; time = (double)(m_inputBuffer.Used() / m_format.m_frameSize) / (double)m_format.m_sampleRate; - time += (double)(m_waterLevel - m_framesBuffered) / (double)AE.GetSampleRate(); + time += (double)m_framesBuffered / (double)AE.GetSampleRate(); time += AE.GetCacheTime(); return time; }