From 737cf2e69e0248e134979cbeb9230e71c908a53d Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sun, 13 May 2007 10:36:53 +0000 Subject: change types of volumes from "int" to "int32_t" git-svn-id: file:///home/lennart/svn/public/libsydney/trunk@9 9ba3c220-e4d3-45a2-8aa3-73fcc9aff6ce --- sydney.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sydney.h') diff --git a/sydney.h b/sydney.h index 5b3f009..1f53784 100644 --- a/sydney.h +++ b/sydney.h @@ -30,7 +30,7 @@ async-signal safe. typedef struct sa_stream sa_stream_t; /** Volume that corresponds to muted in/out */ -#define SA_VOLUME_MUTED 0x80000000 +#define SA_VOLUME_MUTED ((int32_t) (-0x80000000)) /** Ways to express seek offsets for pread/pwrite */ typedef enum { @@ -273,10 +273,10 @@ int sa_stream_start_thread(sa_stream_t *s, sa_event_callback_t *callback); int sa_stream_change_device(sa_stream_t *s, const char *device_name); /** volume in hundreths of dB*/ -int sa_stream_change_input_volume(sa_stream_t *s, const int vol[]); +int sa_stream_change_input_volume(sa_stream_t *s, const int32_t vol[]); /** volume in hundreths of dB*/ -int sa_stream_change_output_volume(sa_stream_t *s, const int vol[]); +int sa_stream_change_output_volume(sa_stream_t *s, const int32_t vol[]); /** Change the sampling rate */ int sa_stream_change_rate(sa_stream_t *s, unsigned rate); -- cgit