diff options
Diffstat (limited to 'polyp/polyplib.h')
-rw-r--r-- | polyp/polyplib.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/polyp/polyplib.h b/polyp/polyplib.h index 440b9658..391cb0c8 100644 --- a/polyp/polyplib.h +++ b/polyp/polyplib.h @@ -91,4 +91,10 @@ void pa_stream_get_latency(struct pa_stream *p, void (*cb)(struct pa_stream *p, struct pa_context* pa_stream_get_context(struct pa_stream *p); +struct pa_stream* pa_context_upload_sample(struct pa_context *c, const char *name, const struct pa_sample_spec *ss, size_t length, void (*cb) (struct pa_stream*s, int success, void *userdata), void *userdata); +void pa_stream_finish_sample(struct pa_stream *p, void (*cb)(struct pa_stream*s, int success, void *userdata), void *userdata); + +void pa_context_play_sample(struct pa_context *c, const char *name, const char *dev, uint32_t volume, void (*cb)(struct pa_context *c, int success, void *userdata), void *userdata); +void pa_context_remove_sample(struct pa_context *c, const char *name, void (*cb)(struct pa_context *c, int success, void *userdata), void *userdata); + #endif |