Promoe now shows kbps / khz for the playing entry.

This commit is contained in:
Tobias Rundstrom 2006-02-19 16:53:10 -03:00
parent 722158f10c
commit eaa2e021a6
4 changed files with 16 additions and 21 deletions

View file

@ -57,11 +57,21 @@ void
XMMSHandler::medialib_info (XMMSResult *res)
{
char str[4096];
int b;
/* Make this NICER! */
res->entryFormat (str, 4096, "${artist} - ${album} - ${title}");
qDebug ("%s", str);
m_mw->getMD ()->m_text->setText (QString::fromUtf8 (str));
if (res->getDictValue ("bitrate", &b)) {
m_mw->getMD ()->m_kbps->setNumber (b/1000, 3);
}
if (res->getDictValue ("samplerate", &b)) {
m_mw->getMD ()->m_khz->setNumber (b/1000, 2);
}
delete res;
}