[spotify] Introduce own spotifyc as replacement for libspotify

This commit is contained in:
ejurgensen
2021-03-28 20:00:15 +02:00
parent d3cc8a52f8
commit a67c74ba6c
54 changed files with 18680 additions and 104 deletions

View File

@@ -16,7 +16,7 @@ enum input_types
INPUT_TYPE_HTTP,
INPUT_TYPE_PIPE,
INPUT_TYPE_TIMER,
#ifdef HAVE_SPOTIFY_H
#ifdef SPOTIFY
INPUT_TYPE_SPOTIFY,
#endif
};
@@ -62,6 +62,10 @@ struct input_source
// Opaque pointer to data that the input backend sets up when start() is
// called, and that is cleaned up by the backend when stop() is called
void *input_ctx;
// The input's event base that the input backend can use for own events
struct event_base *evbase;
// Private evbuf. Alloc'ed by backend at start() and free'd at stop()
struct evbuffer *evbuf;
// Private source quality storage
@@ -128,7 +132,7 @@ struct input_definition
/* ---------------------- Interface towards input backends ------------------ */
/* Thread: input and spotify */
/* Thread: input */
/*
* Transfer stream data to the player's input buffer. Data must be PCM-LE