support for latency interpolation

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@256 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
Lennart Poettering 2004-10-27 00:10:12 +00:00
parent da45617efc
commit 148202d432
13 changed files with 250 additions and 72 deletions

View file

@ -81,6 +81,7 @@ struct pa_context {
struct pa_stream {
int ref;
struct pa_context *context;
struct pa_mainloop_api *mainloop;
PA_LLIST_FIELDS(struct pa_stream);
char *name;
@ -95,6 +96,13 @@ struct pa_stream {
pa_usec_t previous_time;
enum pa_stream_state state;
int interpolate;
int corked;
uint32_t ipol_usec;
struct timeval ipol_timestamp;
struct pa_time_event *ipol_event;
void (*state_callback)(struct pa_stream*c, void *userdata);
void *state_userdata;
@ -103,6 +111,7 @@ struct pa_stream {
void (*write_callback)(struct pa_stream *p, size_t length, void *userdata);
void *write_userdata;
};
struct pa_operation {
@ -135,4 +144,7 @@ struct pa_operation* pa_context_send_simple_command(struct pa_context *c, uint32
void pa_stream_set_state(struct pa_stream *s, enum pa_stream_state st);
void pa_stream_trash_ipol(struct pa_stream *s);
#endif