From 30562d7cba51a9879489ce88840c5f67ff873026 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 17 May 2007 23:42:28 +0000 Subject: basic threading model git-svn-id: file:///home/lennart/svn/public/libsydney/trunk@27 9ba3c220-e4d3-45a2-8aa3-73fcc9aff6ce --- sydney.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'sydney.h') diff --git a/sydney.h b/sydney.h index e9ba724..032caaf 100644 --- a/sydney.h +++ b/sydney.h @@ -270,7 +270,10 @@ int sa_stream_set_dynamic_rate(sa_stream_t *s, int enable); int sa_stream_set_driver(sa_stream_t *s, const char *driver); /** Start callback */ -int sa_stream_start_thread(sa_stream_t *s, sa_event_callback_t *callback); +int sa_stream_start_thread(sa_stream_t *s, sa_event_callback_t callback); + +/** Start callback */ +int sa_stream_stop_thread(sa_stream_t *s); /** Change the device connected to the stream */ int sa_stream_change_device(sa_stream_t *s, const char *device_name); @@ -316,7 +319,7 @@ int sa_stream_get_driver(sa_stream_t *s, char *driver_name, size_t *size); int sa_stream_get_device(sa_stream_t *s, char *device_name, size_t *size); int sa_stream_get_read_volume(sa_stream_t *s, int32_t vol[], unsigned *n); int sa_stream_get_write_volume(sa_stream_t *s, int32_t vol[], unsigned *n); -int sa_stream_get_meta_data(sa_stream_t *s, const char *name, void *data, size_t *size); +int sa_stream_get_meta_data(sa_stream_t *s, const char *name, void*data, size_t *size); int sa_stream_get_adjust_rate(sa_stream_t *s, sa_adjust_t *direction); int sa_stream_get_adjust_nchannels(sa_stream_t *s, sa_adjust_t *direction); int sa_stream_get_adjust_pcm_format(sa_stream_t *s, sa_adjust_t *direction); -- cgit