mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
Add some new public API functions to connect and flush.
This allows us to reconnect upon disconnection but this has thus far proved unreliable. We no longer close the socket. We leave this to the module thread to do the closing. We can also flush the remote buffer now. Refs #69 git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2503 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
d86fc75e0c
commit
c49be7891f
2 changed files with 60 additions and 24 deletions
|
|
@ -33,6 +33,9 @@ typedef struct pa_raop_client pa_raop_client;
|
|||
pa_raop_client* pa_raop_client_new(pa_core *core, const char* host);
|
||||
void pa_raop_client_free(pa_raop_client* c);
|
||||
|
||||
int pa_raop_connect(pa_raop_client* c);
|
||||
int pa_raop_flush(pa_raop_client* c);
|
||||
|
||||
int pa_raop_client_encode_sample(pa_raop_client* c, pa_memchunk* raw, pa_memchunk* encoded);
|
||||
|
||||
typedef void (*pa_raop_client_cb_t)(int fd, void *userdata);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue