mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-08 12:37:01 +03:00
19 lines
342 B
C++
19 lines
342 B
C++
#ifndef AUDIOSINK_H
|
|
#define AUDIOSINK_H
|
|
|
|
#include <stdint.h>
|
|
#include <vector>
|
|
|
|
class AudioSink
|
|
{
|
|
public:
|
|
AudioSink() {}
|
|
virtual ~AudioSink() {}
|
|
virtual void feedPCMFrames(std::vector<uint8_t> &data) = 0;
|
|
virtual void volumeChanged(uint16_t volume) {}
|
|
bool softwareVolumeControl = true;
|
|
bool usign = false;
|
|
};
|
|
|
|
#endif
|