From a5655ed040fb5109bbe2affa72f71fc5c3fd0471 Mon Sep 17 00:00:00 2001 From: pjft Date: Sat, 7 Oct 2017 08:58:09 +0100 Subject: [PATCH] Second stab at normalizing volume scale for OMX Player --- es-core/src/components/VideoPlayerComponent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/es-core/src/components/VideoPlayerComponent.cpp b/es-core/src/components/VideoPlayerComponent.cpp index abeae844c..df7914991 100644 --- a/es-core/src/components/VideoPlayerComponent.cpp +++ b/es-core/src/components/VideoPlayerComponent.cpp @@ -116,7 +116,7 @@ void VideoPlayerComponent::startVideo() else { float percentVolume = (float)VolumeControl::getInstance()->getVolume(); - int OMXVolume = (int)(log(percentVolume/100)*2000); + int OMXVolume = (int)((percentVolume-98)*105); argv[8] = std::to_string(OMXVolume).c_str(); }