aboutsummaryrefslogtreecommitdiffstats
path: root/mixer.c
diff options
context:
space:
mode:
Diffstat (limited to 'mixer.c')
-rw-r--r--mixer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mixer.c b/mixer.c
index 277c245..1772e0f 100644
--- a/mixer.c
+++ b/mixer.c
@@ -29,7 +29,7 @@ mixer_open(char *filename, char *device)
return -1;
}
for (i = 0; i < SOUND_MIXER_NRDEVICES; i++) {
- if ((1<<i) & devmask && strcasecmp(names[i],device) == 0)
+ if ((1<<i) & devmask && strcasecmp(names[i],device) == 0) {
if (-1 == ioctl(mix,MIXER_READ(i),&volume)) {
perror("mixer read volume");
return -1;
@@ -37,6 +37,7 @@ mixer_open(char *filename, char *device)
dev = i;
muted = 0;
}
+ }
}
if (-1 == dev) {
fprintf(stderr,"mixer: hav'nt found device '%s'\nmixer: available: ",device);

Privacy Policy