diff options
author | Ken Moore <moorekou@gmail.com> | 2016-02-12 16:30:01 -0500 |
---|---|---|
committer | Ken Moore <moorekou@gmail.com> | 2016-02-12 16:30:01 -0500 |
commit | c12ad8177a7e06ed714c4ae89cdfd1a36e7595a9 (patch) | |
tree | bfb07cd0fc4301c79b52b359e40eaf5541b88be8 | |
parent | Change a lot of "delete" calls on QWidgets to the safer "->deleteLater()" Qt ... (diff) | |
download | lumina-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).
-rw-r--r-- | libLumina/LuminaOS-Linux.cpp | 9 |
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 -) |