aboutsummaryrefslogtreecommitdiff
path: root/libLumina/LuminaOS-Linux.cpp
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2016-02-12 16:30:01 -0500
committerKen Moore <moorekou@gmail.com>2016-02-12 16:30:01 -0500
commitc12ad8177a7e06ed714c4ae89cdfd1a36e7595a9 (patch)
treebfb07cd0fc4301c79b52b359e40eaf5541b88be8 /libLumina/LuminaOS-Linux.cpp
parentChange a lot of "delete" calls on QWidgets to the safer "->deleteLater()" Qt ... (diff)
downloadlumina-c12ad8177a7e06ed714c4ae89cdfd1a36e7595a9.tar.gz
lumina-c12ad8177a7e06ed714c4ae89cdfd1a36e7595a9.tar.bz2
lumina-c12ad8177a7e06ed714c4ae89cdfd1a36e7595a9.zip
Fix the "amixer" command used to set the volume in the generic "Linux" support class. This was based on a fix posted in Github issue #180 (by texstar).
Diffstat (limited to 'libLumina/LuminaOS-Linux.cpp')
-rw-r--r--libLumina/LuminaOS-Linux.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/libLumina/LuminaOS-Linux.cpp b/libLumina/LuminaOS-Linux.cpp
index 7d618b14..43bcb242 100644
--- a/libLumina/LuminaOS-Linux.cpp
+++ b/libLumina/LuminaOS-Linux.cpp
@@ -103,12 +103,9 @@ 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) + "%";
- if(!info.isEmpty()){
- //Run Command
- LUtils::runCmd(info);
- }
-
+ QString info = "amixer set Master " + QString::number(percent) + "%";
+ //Run Command
+ LUtils::runCmd(info);
}
//Change the current volume a set amount (+ or -)
bgstack15