]>
code.delx.au - pulseaudio/blob - src/polyp.h
8 #include "mainloop-api.h"
12 struct pa_context
*pa_context_new(struct pa_mainloop_api
*mainloop
, const char *name
);
14 int pa_context_connect(
17 void (*complete
) (struct pa_context
*c
, int success
, void *userdata
),
20 void pa_context_free(struct pa_context
*c
);
22 void pa_context_set_die_callback(struct pa_context
*c
, void (*cb
)(struct pa_context
*c
, void *userdata
), void *userdata
);
24 int pa_context_is_dead(struct pa_context
*c
);
25 int pa_context_is_ready(struct pa_context
*c
);
26 int pa_contect_errno(struct pa_context
*c
);
32 enum pa_stream_direction dir
,
35 const struct pa_sample_spec
*ss
,
36 const struct pa_buffer_attr
*attr
,
37 void (*complete
) (struct pa_context
*c
, struct pa_stream
*s
, void *userdata
),
40 void pa_stream_free(struct pa_stream
*p
);
42 void pa_stream_set_die_callback(struct pa_stream
*s
, void (*cb
)(struct pa_stream
*s
, void *userdata
), void *userdata
);
44 void pa_stream_set_write_callback(struct pa_stream
*p
, void (*cb
)(struct pa_stream
*p
, size_t length
, void *userdata
), void *userdata
);
45 void pa_stream_write(struct pa_stream
*p
, const void *data
, size_t length
);
46 size_t pa_stream_writable_size(struct pa_stream
*p
);
48 void pa_stream_set_read_callback(struct pa_stream
*p
, void (*cb
)(struct pa_stream
*p
, const void*data
, size_t length
, void *userdata
), void *userdata
);
50 int pa_stream_is_dead(struct pa_stream
*p
);
51 int pa_stream_is_ready(struct pa_stream
*p
);