summaryrefslogtreecommitdiffstats
path: root/sydney.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2007-05-13 10:36:53 +0000
committerLennart Poettering <lennart@poettering.net>2007-05-13 10:36:53 +0000
commit737cf2e69e0248e134979cbeb9230e71c908a53d (patch)
tree4764853cbc37f4911552946dfaeb5e6924048eba /sydney.h
parent17e086aaa4960e3b4d779ad02d816e9452c0d458 (diff)
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
Diffstat (limited to 'sydney.h')
-rw-r--r--sydney.h6
1 files changed, 3 insertions, 3 deletions
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);