mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-02-16 20:15:38 +00:00
Merge pull request #255 from pjft/OMX-Volume
Second stab at normalizing volume scale for OMX Player
This commit is contained in:
commit
80953960ac
|
@ -116,7 +116,7 @@ void VideoPlayerComponent::startVideo()
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
float percentVolume = (float)VolumeControl::getInstance()->getVolume();
|
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();
|
argv[8] = std::to_string(OMXVolume).c_str();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue