Functioning

This commit is contained in:
amazing-username
2017-04-09 19:10:28 -05:00
parent fabcff4e05
commit 2b3718f5fd
9 changed files with 90 additions and 11 deletions
+28
View File
@@ -0,0 +1,28 @@
#include"stdio.h"
#include"stdlib.h"
#include"IncreaseVolume.h"
#include"AudioInformation.h"
IncreaseVolume::IncreaseVolume()
{
AudioInformation vol;
volume = vol.getVolume();
newVolume();
updateVolume();
updateTheCurrentVolume();
}
void IncreaseVolume::newVolume()
{
volume = volume + AFFECTAMOUNT;
}
void IncreaseVolume::updateVolume()
{
std::string command = "amixer -c 1 set DAC0 ";
command.append(std::to_string(volume));
system(command.c_str());
}