Promoe now shows kbps / khz for the playing entry.
This commit is contained in:
parent
722158f10c
commit
eaa2e021a6
4 changed files with 16 additions and 21 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue