mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-25 23:55:38 +00:00
Second stab at normalizing volume scale for OMX Player
This commit is contained in:
parent
8e7ee6c931
commit
a5655ed040
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue