projects
/
platform
/
core
/
api
/
webapi-plugins.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4583e44
)
[Sound] Expand valid range of get volumn
author
jk.pu
<jk.pu@samsung.com>
Wed, 2 Dec 2015 08:09:43 +0000
(17:09 +0900)
committer
jk.pu
<jk.pu@samsung.com>
Wed, 2 Dec 2015 08:10:35 +0000
(17:10 +0900)
Change-Id: I1dc79ea710638879da803bd398c5d72c307ab0ba
Signed-off-by: jk.pu <jk.pu@samsung.com>
src/sound/sound_manager.cc
patch
|
blob
|
history
diff --git
a/src/sound/sound_manager.cc
b/src/sound/sound_manager.cc
index 4bc7e0dd1ebfbb0e27dabdd1cd808dfea91659f8..42443c6da6bdb729a0e4496de41e6978ea8e0b2c 100644
(file)
--- a/
src/sound/sound_manager.cc
+++ b/
src/sound/sound_manager.cc
@@
-191,7
+191,7
@@
PlatformResult SoundManager::GetMaxVolume(sound_type_e type, int* max_volume) {
double SoundManager::ConvertToSystemVolume(int max_volume, int volume) {
LoggerD("Enter");
- return round(static_cast<double>(volume) * 10
/ max_volume) / 1
0;
+ return round(static_cast<double>(volume) * 10
0 / max_volume) / 10
0;
}
void SoundManager::VolumeChangeCallback(sound_type_e type, unsigned int value) {