Changed from config files from being user-centric to system. Some refactoring. Added install script

This commit is contained in:
amazing-username
2018-07-23 21:30:52 -04:00
parent 63ff22973b
commit 0777990b5e
11 changed files with 37 additions and 51 deletions
+8 -5
View File
@@ -1,22 +1,25 @@
#ifndef AUDIODUMP_H
#define AUDIODUMP_H
#include<string>
#include"stdio.h"
#include"stdlib.h"
class AudioDump
{
public:
AudioDump()
{
}
AudioDump() { }
void dump()
{
system("amixer -c 1 get Master > audio.txt");
//system("amixer -c 1 get Master > " + audioDump);
command += audioDump;
system(command.c_str() );
}
private:
std::string command{"amixer -c 1 get Master > "};
std::string audioDump{"/usr/lib/AudioControl/audio.txt"};
};
#endif