mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-26 04:26:14 -05:00
[spotify] Introduce own spotifyc as replacement for libspotify
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user