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/General/mpris/mpris1/playerobject.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/plugins/General/mpris/mpris1/playerobject.cpp') diff --git a/src/plugins/General/mpris/mpris1/playerobject.cpp b/src/plugins/General/mpris/mpris1/playerobject.cpp index 3605c51a0..866a9858b 100644 --- a/src/plugins/General/mpris/mpris1/playerobject.cpp +++ b/src/plugins/General/mpris/mpris1/playerobject.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2008-2013 by Ilya Kotov * + * Copyright (C) 2008-2017 by Ilya Kotov * * forkotov02@ya.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -143,7 +143,7 @@ QVariantMap PlayerObject::GetMetadata() map.insert("genre", m_core->metaData(Qmmp::GENRE)); map.insert("comment", m_core->metaData(Qmmp::COMMENT)); map.insert("audio-bitrate", (quint32)m_core->bitrate()); - map.insert("audio-samplerate", (quint32)m_core->frequency()); + map.insert("audio-samplerate", (quint32)m_core->audioParameters().sampleRate()); map.insert("year", m_core->metaData(Qmmp::YEAR).toUInt()); return map; } -- cgit v1.2.3-13-gbd6f