Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Return more accurate information about SampleRate #1193

Merged
1 commit merged into from Aug 3, 2012
Jump to file or symbol
Failed to load files and symbols.
+1 −1
Split
View
@@ -3240,7 +3240,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;
}