DirectShow: Remove unused static function decibelsToVolume().

Fix warning:
player\directshowplayercontrol.cpp:56:12: warning: 'int decibelsToVolume(int)' defined but not used [-Wunused-function]

Change-Id: Ic482be6b58f675da008a0e0600d73c127871f3d7
Reviewed-by: Yoann Lopes <yoann.lopes@theqtcompany.com>
This commit is contained in:
Friedemann Kleint
2015-11-25 12:05:27 +01:00
committed by Yoann Lopes
parent ea2f5aa0b5
commit 4b2e4f5924

View File

@@ -53,17 +53,6 @@ static int volumeToDecibels(int volume)
} }
} }
static int decibelsToVolume(int dB)
{
if (dB == -10000) {
return 0;
} else if (dB == 0) {
return 100;
} else {
return qRound(100 * qPow(10, qreal(dB) / 5000));
}
}
DirectShowPlayerControl::DirectShowPlayerControl(DirectShowPlayerService *service, QObject *parent) DirectShowPlayerControl::DirectShowPlayerControl(DirectShowPlayerService *service, QObject *parent)
: QMediaPlayerControl(parent) : QMediaPlayerControl(parent)
, m_service(service) , m_service(service)