mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-25 06:59:52 -05:00
Move attaching/detaching from a pa_rtpoll into pa_sink proper, remove it from module-combine
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1823 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
3396b65f15
commit
5ae4eed52e
6 changed files with 150 additions and 30 deletions
|
|
@ -121,6 +121,8 @@ typedef enum pa_source_message {
|
|||
PA_SOURCE_MESSAGE_GET_LATENCY,
|
||||
PA_SOURCE_MESSAGE_SET_STATE,
|
||||
PA_SOURCE_MESSAGE_PING,
|
||||
PA_SOURCE_MESSAGE_ATTACH,
|
||||
PA_SOURCE_MESSAGE_DETACH,
|
||||
PA_SOURCE_MESSAGE_MAX
|
||||
} pa_source_message_t;
|
||||
|
||||
|
|
@ -142,6 +144,9 @@ void pa_source_set_description(pa_source *s, const char *description);
|
|||
void pa_source_set_asyncmsgq(pa_source *s, pa_asyncmsgq *q);
|
||||
void pa_source_set_rtpoll(pa_source *s, pa_rtpoll *p);
|
||||
|
||||
void pa_source_detach(pa_source *s);
|
||||
void pa_source_attach(pa_source *s);
|
||||
|
||||
/* May be called by everyone, from main context */
|
||||
|
||||
pa_usec_t pa_source_get_latency(pa_source *s);
|
||||
|
|
@ -164,8 +169,9 @@ unsigned pa_source_used_by(pa_source *s);
|
|||
|
||||
void pa_source_post(pa_source*s, const pa_memchunk *b);
|
||||
|
||||
int pa_source_process_outputs(pa_source *o);
|
||||
|
||||
int pa_source_process_msg(pa_msgobject *o, int code, void *userdata, int64_t, pa_memchunk *chunk);
|
||||
|
||||
void pa_source_attach_within_thread(pa_source *s);
|
||||
void pa_source_detach_within_thread(pa_source *s);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue