From: Andrzej Popowski Date: Fri, 10 Jul 2015 08:06:18 +0000 (+0200) Subject: [Sound] - Fixing problem with getting volume listener X-Git-Tag: submit/tizen_tv/20150720.124123^2^2~20 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=80e51f5f6570e1eb37f4609ba4dea97186db6e39;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git [Sound] - Fixing problem with getting volume listener [Verification] - TCT results 100% (52/52/0/0/0) Change-Id: Id8bc7c252006349d4e458b0771133a02469054be Signed-off-by: Andrzej Popowski --- diff --git a/src/sound/sound_manager.cc b/src/sound/sound_manager.cc index 97468dae..4fa6a7ad 100644 --- a/src/sound/sound_manager.cc +++ b/src/sound/sound_manager.cc @@ -189,7 +189,7 @@ PlatformResult SoundManager::GetMaxVolume(sound_type_e type, int* max_volume) { double SoundManager::ConvertToSystemVolume(int max_volume, int volume) { LoggerD("Enter"); - return static_cast(volume) / max_volume; + return round(static_cast(volume) * 10 / max_volume) / 10; } void SoundManager::VolumeChangeCallback(sound_type_e type, unsigned int value) {