Changed from selecting DAC0 to Master and adjusted the volume change amount from 20 to 13

This commit is contained in:
amazing-username
2017-09-24 18:51:10 -05:00
parent 58ce3d8eb9
commit 63ff22973b
5 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ public:
void dump() void dump()
{ {
system("amixer -c 1 get DAC0 > audio.txt"); system("amixer -c 1 get Master > audio.txt");
} }
}; };
+1 -1
View File
@@ -29,7 +29,7 @@ void DecreaseVolume::newVolume()
} }
void DecreaseVolume::updateVolume() void DecreaseVolume::updateVolume()
{ {
std::string command = "amixer -c 1 set DAC0 "; std::string command = "amixer -c 1 set Master ";
command.append(std::to_string(volume)); command.append(std::to_string(volume));
system(command.c_str()); system(command.c_str());
} }
+1 -1
View File
@@ -29,7 +29,7 @@ void IncreaseVolume::newVolume()
} }
void IncreaseVolume::updateVolume() void IncreaseVolume::updateVolume()
{ {
std::string command = "amixer -c 1 set DAC0 "; std::string command = "amixer -c 1 set Master ";
command.append(std::to_string(volume)); command.append(std::to_string(volume));
system(command.c_str()); system(command.c_str());
} }
+1 -1
View File
@@ -29,7 +29,7 @@ protected:
short volume; short volume;
unsigned short playBackOrigin = 0; unsigned short playBackOrigin = 0;
unsigned short playBackEnd = 127; unsigned short playBackEnd = 127;
const unsigned short AFFECTAMOUNT = 20; const unsigned short AFFECTAMOUNT = 13;
private: private:
}; };
+2
View File
@@ -0,0 +1,2 @@
AudioVolume : AudioDump.h AudioInformation.cpp AudioInformation.h DecreaseVolume.cpp DecreaseVolume.h IncreaseVolume.cpp IncreaseVolume.h MainVolumeControl.cpp Volume.cpp Volume.h
g++ AudioDump.h AudioInformation.cpp AudioInformation.h DecreaseVolume.cpp DecreaseVolume.h IncreaseVolume.cpp IncreaseVolume.h MainVolumeControl.cpp Volume.cpp Volume.h -o AudioVolume