Code Review
/
apps
/
mixer.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Convert volume to the [0.0,1.0] range before sending it to audiomixer
[apps/mixer.git]
/
app
/
mixer.cpp
diff --git
a/app/mixer.cpp
b/app/mixer.cpp
index
fae2e6a
..
e37e741
100644
(file)
--- a/
app/mixer.cpp
+++ b/
app/mixer.cpp
@@
-49,7
+49,7
@@
void Mixer::setRoleVolume(AudioRole* role)
QJsonObject arg;
arg.insert("control", role->Name().toLocal8Bit().data());
- arg.insert("value", QJsonValue(role->Value()));
+ arg.insert("value", QJsonValue(role->Value()
/ 100.0
));
m_client.call("audiomixer", "volume", arg);
}