summaryrefslogtreecommitdiffstats
path: root/driver.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2007-05-13 00:49:21 +0000
committerLennart Poettering <lennart@poettering.net>2007-05-13 00:49:21 +0000
commit08ee90ea2e6ea839846c5670afa9d1a19c20ba78 (patch)
tree20179e14950b79d7057d16b95aea7c13274478cc /driver.h
parente8ef97ff9e0ff4e4ab2b0f24b5d13e4a9c151ef1 (diff)
s/device/stream
git-svn-id: file:///home/lennart/svn/public/libsydney/trunk@7 9ba3c220-e4d3-45a2-8aa3-73fcc9aff6ce
Diffstat (limited to 'driver.h')
-rw-r--r--driver.h38
1 files changed, 19 insertions, 19 deletions
diff --git a/driver.h b/driver.h
index 0eee0ed..98f65a6 100644
--- a/driver.h
+++ b/driver.h
@@ -3,26 +3,26 @@
#include "sydney.h"
-int device_open(sa_device_t *dev);
-int device_destroy(sa_device_t *dev);
-int device_start_thread(sa_device_t *dev, sa_event_callback_t *callback);
+int driver_open(sa_stream_t *dev);
+int driver_destroy(sa_stream_t *dev);
+int driver_start_thread(sa_stream_t *dev, sa_event_callback_t *callback);
-int device_change_device(sa_device_t *dev, const char *device_name);
-int device_change_input_volume(sa_device_t *dev, const int vol[]);
-int device_change_output_volume(sa_device_t *dev, const int vol[]);
-int device_change_rate(sa_device_t *dev, unsigned rate);
-int device_change_meta_data(sa_device_t *dev, const char *name, const void *data, size_t size);
+int driver_change_device(sa_stream_t *dev, const char *device_name);
+int driver_change_input_volume(sa_stream_t *dev, const int vol[]);
+int driver_change_output_volume(sa_stream_t *dev, const int vol[]);
+int driver_change_rate(sa_stream_t *dev, unsigned rate);
+int driver_change_meta_data(sa_stream_t *dev, const char *name, const void *data, size_t size);
-int device_get_state(sa_device_t *dev, sa_state_t *state);
-int device_get_position(sa_device_t *dev, sa_position_t position, int64_t *pos);
-int device_pread(sa_device_t *dev, void *data, size_t nbytes, int64_t offset, sa_seek_t whence);
-int device_pwrite(sa_device_t *dev, const void *data, size_t nbytes, int64_t offset, sa_seek_t whence);
-int device_pread_ni(sa_device_t *dev, unsigned channel, void *data, size_t nbytes, int64_t offset, sa_seek_t whence);
-int device_pwrite_ni(sa_device_t *dev, unsigned channel, const void *data, size_t nbytes, int64_t offset, sa_seek_t whence);
-int device_get_read_size(sa_device_t *dev, size_t *size);
-int device_get_write_size(sa_device_t *dev, size_t *size);
-int device_resume(sa_device_t *dev);
-int device_pause(sa_device_t *dev);
-int device_drain(sa_device_t *dev);
+int driver_get_state(sa_stream_t *dev, sa_state_t *state);
+int driver_get_position(sa_stream_t *dev, sa_position_t position, int64_t *pos);
+int driver_pread(sa_stream_t *dev, void *data, size_t nbytes, int64_t offset, sa_seek_t whence);
+int driver_pwrite(sa_stream_t *dev, const void *data, size_t nbytes, int64_t offset, sa_seek_t whence);
+int driver_pread_ni(sa_stream_t *dev, unsigned channel, void *data, size_t nbytes, int64_t offset, sa_seek_t whence);
+int driver_pwrite_ni(sa_stream_t *dev, unsigned channel, const void *data, size_t nbytes, int64_t offset, sa_seek_t whence);
+int driver_get_read_size(sa_stream_t *dev, size_t *size);
+int driver_get_write_size(sa_stream_t *dev, size_t *size);
+int driver_resume(sa_stream_t *dev);
+int driver_pause(sa_stream_t *dev);
+int driver_drain(sa_stream_t *dev);
#endif