Changed from config files from being user-centric to system. Some refactoring. Added install script
This commit is contained in:
+8
-5
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user