mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-10 13:37:03 +03:00
22 lines
465 B
C++
22 lines
465 B
C++
#ifndef AUDIOSINK_H
|
|
#define AUDIOSINK_H
|
|
|
|
#include <cstdint>
|
|
#include <cstdlib>
|
|
#include <vector>
|
|
|
|
class AudioSink
|
|
{
|
|
public:
|
|
AudioSink() {}
|
|
virtual ~AudioSink() {}
|
|
virtual void feedPCMFrames(const uint8_t *buffer, size_t bytes) = 0;
|
|
virtual void volumeChanged(uint16_t volume) {}
|
|
// return true if the sink supports rate changing
|
|
virtual bool setRate(uint16_t sampleRate) { return false; }
|
|
bool softwareVolumeControl = true;
|
|
bool usign = false;
|
|
};
|
|
|
|
#endif
|