Permalink
Browse files

Merge pull request #1193 from Karlson2k/Khz_with_decimal

Return more accurate information about SampleRate
  • Loading branch information...
2 parents c584811 + d224ce5 commit b343bb2b6dcd4397b91729dc28a62b228c1119e0 Arne Morten Kvarving committed Aug 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 xbmc/GUIInfoManager.cpp
View
@@ -3234,7 +3234,7 @@ CStdString CGUIInfoManager::GetMusicLabel(int item)
CStdString strSampleRate = "";
if (g_application.m_pPlayer->GetSampleRate() > 0)
{
- strSampleRate.Format("%i",g_application.m_pPlayer->GetSampleRate()/1000);
+ strSampleRate.Format("%.5g", ((double)g_application.m_pPlayer->GetSampleRate() / 1000.0));
}
return strSampleRate;
}

0 comments on commit b343bb2

Please sign in to comment.