This repository has been archived on 2026-07-02. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files

26 lines
553 B
C++

#ifndef VOLUME_H
#define VOLUME_H
#include<string>
class Volume
{
public:
Volume() { }
void setVolume(const unsigned short& volume) { this->volume = volume; }
unsigned short getVolume() const { return volume; }
void updateTheCurrentVolume();
virtual void updateVolume() = 0;
virtual void newVolume() = 0;
protected:
std::string curVolumePath{"/usr/lib/AudioControl/currentvolume.txt"};
unsigned short volume;
unsigned short playBackOrigin = 0;
unsigned short playBackEnd = 127;
const unsigned short AFFECTAMOUNT = 13;
private:
};
#endif