aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2008-04-05 20:33:19 -0700
committerChris Robinson <[email protected]>2008-04-05 20:33:19 -0700
commite15bc6b9bad79ef79bf68bc59ecc14e1b7221141 (patch)
treebaf7626578e33ebaacc617046e3e84fdfb75ddbe /Alc
parent28093a6dcb419f3809acb661d9d8815a64a97f2c (diff)
Fill the correct capture device list
Diffstat (limited to 'Alc')
-rw-r--r--Alc/alsa.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/Alc/alsa.c b/Alc/alsa.c
index fa655386..a5b71aef 100644
--- a/Alc/alsa.c
+++ b/Alc/alsa.c
@@ -856,6 +856,7 @@ next_card:
}
allCaptureDevNameMap[0].name = AppendCaptureDeviceList("ALSA Capture on default");
+ idx = 1;
while (card >= 0) {
sprintf(name, "hw:%d", card);
@@ -889,9 +890,9 @@ next_card:
dname = psnd_pcm_info_get_name(pcminfo);
snprintf(name, sizeof(name), "ALSA Capture on %s [%s]",
cname, dname);
- allDevNameMap[idx].name = AppendCaptureDeviceList(name);
- allDevNameMap[idx].card = card;
- allDevNameMap[idx].dev = dev;
+ allCaptureDevNameMap[idx].name = AppendCaptureDeviceList(name);
+ allCaptureDevNameMap[idx].card = card;
+ allCaptureDevNameMap[idx].dev = dev;
idx++;
}
}