mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-10 05:27:01 +03:00
update CSpot
This commit is contained in:
@@ -12,8 +12,12 @@ class 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; }
|
||||
// Return false if the sink doesn't support reconfiguration.
|
||||
virtual bool setParams(uint32_t sampleRate, uint8_t channelCount, uint8_t bitDepth) { return false; }
|
||||
// Deprecated. Implement/use setParams() instead.
|
||||
virtual inline bool setRate(uint16_t sampleRate) {
|
||||
return setParams(sampleRate, 2, 16);
|
||||
}
|
||||
bool softwareVolumeControl = true;
|
||||
bool usign = false;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user