aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Smith <jsmith@resonatingmedia.com>2015-06-18 16:05:55 -0300
committerJesse Smith <jsmith@resonatingmedia.com>2015-06-18 16:05:55 -0300
commitef20ac448d23ac9dccfef5b6c3660f6cef8baa5f (patch)
treed9f978d738e863fc80273ab45a700bd5190e375f
parentFixed selecting Linux template. (diff)
downloadlumina-ef20ac448d23ac9dccfef5b6c3660f6cef8baa5f.tar.gz
lumina-ef20ac448d23ac9dccfef5b6c3660f6cef8baa5f.tar.bz2
lumina-ef20ac448d23ac9dccfef5b6c3660f6cef8baa5f.zip
Minor change to audio to make volume adjustment more tolerant.
Made a small adjustment to the way sound is set on Linux to make it more reliable.
-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