From 065387600c5d8e3b045802d82c5d4ab12b208e2a Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sun, 22 Oct 2017 13:05:01 +0000 Subject: 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 --- src/plugins/Ui/qsui/mainwindow.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/plugins/Ui/qsui/mainwindow.cpp') 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("%1|%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())); -- cgit v1.2.3-13-gbd6f