[Sound] - Fixing problem with getting volume listener
authorAndrzej Popowski <a.popowski@samsung.com>
Fri, 10 Jul 2015 08:06:18 +0000 (10:06 +0200)
committerAndrzej Popowski <a.popowski@samsung.com>
Fri, 10 Jul 2015 08:20:35 +0000 (17:20 +0900)
[Verification] - TCT results 100% (52/52/0/0/0)

Change-Id: Id8bc7c252006349d4e458b0771133a02469054be
Signed-off-by: Andrzej Popowski <a.popowski@samsung.com>
src/sound/sound_manager.cc

index 97468daeb9f43b111c0153368f196561b2136774..4fa6a7ad7ba1cea2733912de039958b365ccfb3f 100644 (file)
@@ -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<double>(volume) / max_volume;
+  return round(static_cast<double>(volume) * 10 / max_volume) / 10;
 }
 
 void SoundManager::VolumeChangeCallback(sound_type_e type, unsigned int value) {