summaryrefslogtreecommitdiffstats
path: root/sydney.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2007-05-17 23:42:28 +0000
committerLennart Poettering <lennart@poettering.net>2007-05-17 23:42:28 +0000
commit30562d7cba51a9879489ce88840c5f67ff873026 (patch)
treed9184295ec5310bab0e81c1caae463fec9e136b2 /sydney.h
parentbef6322859a5dc01e35d884de7afd2eabb1d9e4d (diff)
basic threading model
git-svn-id: file:///home/lennart/svn/public/libsydney/trunk@27 9ba3c220-e4d3-45a2-8aa3-73fcc9aff6ce
Diffstat (limited to 'sydney.h')
-rw-r--r--sydney.h7
1 files changed, 5 insertions, 2 deletions
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);