diff options
author | Lennart Poettering <lennart@poettering.net> | 2004-08-27 01:29:49 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2004-08-27 01:29:49 +0000 |
commit | 92bf0a365a3a8390bb3f023458a9e62c31849628 (patch) | |
tree | 23adcb50a438e13a0f3d46d492a2992b13b8f962 /polyp/polyplib-stream.h | |
parent | b6b428e5cbfc2440f5950c0744e15bc4d84e6b31 (diff) |
latency work
major main loop bugfix
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@154 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/polyplib-stream.h')
-rw-r--r-- | polyp/polyplib-stream.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/polyp/polyplib-stream.h b/polyp/polyplib-stream.h index a0cbe521..d74c3cb2 100644 --- a/polyp/polyplib-stream.h +++ b/polyp/polyplib-stream.h @@ -102,7 +102,7 @@ size_t pa_stream_writable_size(struct pa_stream *p); struct pa_operation* pa_stream_drain(struct pa_stream *s, void (*cb) (struct pa_stream*s, int success, void *userdata), void *userdata); /** Get the playback latency of a stream */ -struct pa_operation* pa_stream_get_latency(struct pa_stream *p, void (*cb)(struct pa_stream *p, uint32_t latency, void *userdata), void *userdata); +struct pa_operation* pa_stream_get_latency(struct pa_stream *p, void (*cb)(struct pa_stream *p, const struct pa_latency_info *i, void *userdata), void *userdata); /** Set the callback function that is called whenever the state of the stream changes */ void pa_stream_set_state_callback(struct pa_stream *s, void (*cb)(struct pa_stream *s, void *userdata), void *userdata); @@ -121,6 +121,11 @@ struct pa_operation* pa_stream_cork(struct pa_stream *s, int b, void (*cb) (stru * function. \since 0.3 */ struct pa_operation* pa_stream_flush(struct pa_stream *s, void (*cb)(struct pa_stream *s, int success, void *userdata), void *userdata); +/** Request immediate start of playback on this stream. This disables + * prebuffering as specified in the pa_buffer_attr structure. \since + * 0.3 */ +struct pa_operation* pa_stream_trigger(struct pa_stream *s, void (*cb)(struct pa_stream *s, int success, void *userdata), void *userdata); + PA_C_DECL_END #endif |