summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <marcel-hollerbach@t-online.de>2014-06-30 10:04:58 +0200
committerFlavio Ceolin <flavio.ceolin@gmail.com>2014-08-14 23:33:18 -0300
commitc42bb7da2c77148f76eeb2aa9fd931188f604fcb (patch)
treed4f44291451ad749d3f2ec2016145b53e8576011
parent043dba125bb80bbe6454263df49abd2c8b8dddec (diff)
emix: the count should not be signed.
-rw-r--r--src/lib/backends/pulseaudio/pulse.c2
-rw-r--r--src/lib/emix.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/backends/pulseaudio/pulse.c b/src/lib/backends/pulseaudio/pulse.c
index 448b927..26c2c29 100644
--- a/src/lib/backends/pulseaudio/pulse.c
+++ b/src/lib/backends/pulseaudio/pulse.c
@@ -51,7 +51,7 @@ static pa_cvolume
51_emix_volume_convert(const Emix_Volume volume) 51_emix_volume_convert(const Emix_Volume volume)
52{ 52{
53 pa_cvolume vol; 53 pa_cvolume vol;
54 int i; 54 unsigned int i;
55 55
56 vol.channels = volume.channel_count; 56 vol.channels = volume.channel_count;
57 for (i = 0; i < volume.channel_count; i++) 57 for (i = 0; i < volume.channel_count; i++)
diff --git a/src/lib/emix.h b/src/lib/emix.h
index 4a7d821..145df46 100644
--- a/src/lib/emix.h
+++ b/src/lib/emix.h
@@ -9,7 +9,7 @@ EAPI extern int EMIX_SINK_INPUT_EVENT;
9EAPI extern int EMIX_SOURCE_EVENT; 9EAPI extern int EMIX_SOURCE_EVENT;
10 10
11typedef struct _Emix_Volume { 11typedef struct _Emix_Volume {
12 int channel_count; 12 unsigned int channel_count;
13 // the index of the field is the id of the channel, the value the volume 13 // the index of the field is the id of the channel, the value the volume
14 int *volumes; 14 int *volumes;
15} Emix_Volume; 15} Emix_Volume;