aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2015-06-19 13:37:28 -0400
committerKen Moore <moorekou@gmail.com>2015-06-19 13:37:28 -0400
commitb76d30a548c099e22d544d05c142f520c753b550 (patch)
treed8519f30c5783e563040392257402378f4603285
parentMerge branch 'master' of github.com:pcbsd/lumina (diff)
parentMinor change to audio to make volume adjustment more tolerant. (diff)
downloadlumina-b76d30a548c099e22d544d05c142f520c753b550.tar.gz
lumina-b76d30a548c099e22d544d05c142f520c753b550.tar.bz2
lumina-b76d30a548c099e22d544d05c142f520c753b550.zip
Merge pull request #130 from pcbsd/linux
Minor change to audio to make volume adjustment more tolerant.
-rw-r--r--libLumina/LuminaOS-Debian.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/libLumina/LuminaOS-Debian.cpp b/libLumina/LuminaOS-Debian.cpp
index df91819e..12d8f11e 100644
--- a/libLumina/LuminaOS-Debian.cpp
+++ b/libLumina/LuminaOS-Debian.cpp
@@ -106,7 +106,8 @@ QString info = LUtils::getCmdOutput("amixer get Master").join("").simplified();;
void LOS::setAudioVolume(int percent){
if(percent<0){percent=0;}
else if(percent>100){percent=100;}
- QString info = "amixer -c 0 sset Master,0 " + QString::number(percent) + "%";
+ // QString info = "amixer -c 0 sset Master,0 " + QString::number(percent) + "%";
+ QString info = "amixer set Master " + QString::number(percent) + "%";
if(!info.isEmpty()){
//Run Command
LUtils::runCmd(info);
bgstack15