path: root/src/driver.h
diff options
authorLennart Poettering <>2008-10-09 18:15:23 +0200
committerLennart Poettering <>2008-10-09 18:15:23 +0200
commit181e9c6d5d11cb1e5d36a2777eeb233ad8ed00e5 (patch)
tree7c280968ce3fded5b325b1480d7f2440ddf93207 /src/driver.h
parent30a4b516c8d591c11f05df38531f46452d930d2b (diff)
big pile of updates to match more what happened with libcanberra
Diffstat (limited to 'src/driver.h')
1 files changed, 42 insertions, 20 deletions
diff --git a/src/driver.h b/src/driver.h
index 15d690e..c49d534 100644
--- a/src/driver.h
+++ b/src/driver.h
@@ -1,34 +1,56 @@
#ifndef foosydneydriverhfoo
#define foosydneydriverhfoo
+ This file is part of libsydney.
+ Copyright 2007-2008 Lennart Poettering
+ libsydney is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation, either version 2.1 of the
+ License, or (at your option) any later version.
+ libsydney is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ Lesser General Public License for more details.
+ You should have received a copy of the GNU Lesser General Public
+ License along with libsydney. If not, see
+ <>.
#include "sydney.h"
-int driver_open(sa_stream_t *dev);
-int driver_destroy(sa_stream_t *dev);
+int driver_open(sa_stream *s);
+int driver_destroy(sa_stream *s);
+int driver_change_write_latency(sa_stream *s, size_t *latency, size_t *process_time);
+int driver_change_read_latency(sa_stream *s, size_t *latency, size_t *process_time);
-int driver_start_thread(sa_stream_t *dev, sa_event_callback_t callback);
-int driver_stop_thread(sa_stream_t *dev);
+int driver_change_device(sa_stream *s, const char *device_name);
+int driver_change_read_volume(sa_stream *s, const int32_t vol[]);
+int driver_change_write_volume(sa_stream *s, const int32_t vol[]);
+int driver_change_pcm_rate(sa_stream *s, unsigned rate);
+int driver_change_props(sa_stream *s, sa_proplist *changed, sa_proplist *merged);
-int driver_change_device(sa_stream_t *dev, const char *device_name);
-int driver_change_read_volume(sa_stream_t *dev, const int32_t vol[]);
-int driver_change_write_volume(sa_stream_t *dev, const int32_t 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 driver_get_state(sa_stream *s, sa_state_t *state);
+int driver_get_position(sa_stream *s, sa_position_t position, int64_t *pos);
-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_wait(sa_stream *s);
-int driver_read(sa_stream_t *dev, void *data, size_t nbytes);
-int driver_read_ni(sa_stream_t *dev, unsigned channel, void *data, size_t nbytes);
+int driver_read(sa_stream *s, void *data, size_t nbytes);
+int driver_read_ni(sa_stream *s, unsigned channel, void *data, size_t nbytes);
-int driver_pwrite(sa_stream_t *dev, const 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_pwrite(sa_stream *s, const void *data, size_t nbytes, int64_t offset, sa_seek_t whence);
+int driver_pwrite_ni(sa_stream *s, 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_get_read_size(sa_stream *s, size_t *size);
+int driver_get_write_size(sa_stream *s, size_t *size);
-int driver_resume(sa_stream_t *dev);
-int driver_pause(sa_stream_t *dev);
-int driver_drain(sa_stream_t *dev);
+int driver_resume(sa_stream *s);
+int driver_pause(sa_stream *s);
+int driver_drain(sa_stream *s);