Skip to content

Commit

Permalink
fixed, CSoftAEStream::GetCacheTime was calculated wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
davilla committed Feb 11, 2013
1 parent b8c297c commit 6b28a05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xbmc/cores/AudioEngine/Engines/SoftAE/SoftAEStream.cpp
Expand Up @@ -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;
}
Expand Down

0 comments on commit 6b28a05

Please sign in to comment.