mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2026-01-29 13:50:48 +03:00
update CSpot
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
|
||||
#define SPOTIFY_HEADER_SIZE 167
|
||||
#define BUFFER_SIZE 0x20000 * 1.5
|
||||
typedef std::function<void(std::vector<uint8_t>&)> pcmDataCallback;
|
||||
typedef std::function<void(uint8_t *, size_t)> pcmDataCallback;
|
||||
|
||||
enum class Whence
|
||||
{
|
||||
@@ -59,7 +59,7 @@ public:
|
||||
std::vector<uint8_t> read(size_t bytes);
|
||||
void seekMs(uint32_t positionMs);
|
||||
void seek(size_t pos, Whence whence);
|
||||
void startPlaybackLoop();
|
||||
void startPlaybackLoop(uint8_t *pcmOut, size_t pcmOut_len);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -41,7 +41,7 @@ public:
|
||||
void pause();
|
||||
void cancelCurrentTrack();
|
||||
void seekMs(size_t positionMs);
|
||||
void feedPCM(std::vector<uint8_t> &data);
|
||||
void feedPCM(uint8_t *data, size_t len);
|
||||
void play();
|
||||
void stop();
|
||||
|
||||
|
||||
@@ -51,6 +51,7 @@ private:
|
||||
void loadTrack(uint32_t position_ms = 0, bool isPaused = 0);
|
||||
public:
|
||||
SpircController(std::shared_ptr<MercuryManager> manager, std::string username, std::shared_ptr<AudioSink> audioSink);
|
||||
~SpircController();
|
||||
void subscribe();
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user