mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-10 05:27:01 +03:00
catching up (trying to) wiht CSpot
This commit is contained in:
21
components/spotify/cspot/bell/include/AudioSink.h
Normal file
21
components/spotify/cspot/bell/include/AudioSink.h
Normal file
@@ -0,0 +1,21 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user