Skip to content
This repository
Browse code

fixed, CSoftAEStream::GetCacheTime was calculated wrong

  • Loading branch information...
commit 6b28a05e74307196d915591e2d0d09fafd054f3c 1 parent b8c297c
authored
2  xbmc/cores/AudioEngine/Engines/SoftAE/SoftAEStream.cpp
@@ -496,7 +496,7 @@ double CSoftAEStream::GetCacheTime()
496 496
 
497 497
   double time;
498 498
   time  = (double)(m_inputBuffer.Used() / m_format.m_frameSize) / (double)m_format.m_sampleRate;
499  
-  time += (double)(m_waterLevel - m_framesBuffered)             / (double)AE.GetSampleRate();
  499
+  time += (double)m_framesBuffered                              / (double)AE.GetSampleRate();
500 500
   time += AE.GetCacheTime();
501 501
   return time;
502 502
 }

0 notes on commit 6b28a05

Please sign in to comment.
Something went wrong with that request. Please try again.