mirror of
https://github.com/badaix/snapcast.git
synced 2025-07-30 22:59:51 +02:00
added setMute
This commit is contained in:
parent
6e3a569057
commit
f1e05797a3
2 changed files with 28 additions and 0 deletions
|
@ -34,6 +34,7 @@ public:
|
|||
Player(const PcmDevice& pcmDevice, Stream* stream);
|
||||
virtual ~Player();
|
||||
void setVolume(double volume);
|
||||
void setMute(bool mute);
|
||||
void start();
|
||||
void stop();
|
||||
static std::vector<PcmDevice> pcm_list(void);
|
||||
|
@ -42,8 +43,10 @@ private:
|
|||
void initAlsa();
|
||||
void uninitAlsa();
|
||||
void worker();
|
||||
|
||||
snd_pcm_t* handle_;
|
||||
snd_pcm_uframes_t frames_;
|
||||
|
||||
char *buff_;
|
||||
std::atomic<bool> active_;
|
||||
Stream* stream_;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue