aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Ui/qsui/mainwindow.cpp
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2017-10-22 13:05:01 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2017-10-22 13:05:01 +0000
commit065387600c5d8e3b045802d82c5d4ab12b208e2a (patch)
tree9e074d87ad91d269445488225f3a977593a47266 /src/plugins/Ui/qsui/mainwindow.cpp
parent49284bb0d33a2598f96645182984bc3fa671b932 (diff)
downloadqmmp-065387600c5d8e3b045802d82c5d4ab12b208e2a.tar.gz
qmmp-065387600c5d8e3b045802d82c5d4ab12b208e2a.tar.bz2
qmmp-065387600c5d8e3b045802d82c5d4ab12b208e2a.zip
changed SoundCore API, fixed displaying bits per sample (#926)
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@7613 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Ui/qsui/mainwindow.cpp')
-rw-r--r--src/plugins/Ui/qsui/mainwindow.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/plugins/Ui/qsui/mainwindow.cpp b/src/plugins/Ui/qsui/mainwindow.cpp
index e92ed21a3..56f5622ca 100644
--- a/src/plugins/Ui/qsui/mainwindow.cpp
+++ b/src/plugins/Ui/qsui/mainwindow.cpp
@@ -369,11 +369,12 @@ void MainWindow::updateStatus()
if(m_core->state() == Qmmp::Playing || m_core->state() == Qmmp::Paused)
{
+ AudioParameters ap = m_core->audioParameters();
m_statusLabel->setText(tr("<b>%1</b>|%2 bit|%3 ch|%4 Hz|tracks: %5|total time: %6|%7 kbps|")
.arg(m_core->state() == Qmmp::Playing ? tr("Playing") : tr("Paused"))
- .arg(m_core->sampleSize())
- .arg(m_core->channels())
- .arg(m_core->frequency())
+ .arg(ap.validBitsPerSample())
+ .arg(ap.channels())
+ .arg(ap.sampleRate())
.arg(tracks)
.arg(MetaDataFormatter::formatLength(length, false))
.arg(m_core->bitrate()));