From f29fbdf088f8174b079758defc752cadd2f039ab Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 26 Feb 2012 23:02:29 -0800 Subject: [PATCH] Print enumerated ALSA devices --- Alc/backends/alsa.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Alc/backends/alsa.c b/Alc/backends/alsa.c index 19639543..916d5882 100644 --- a/Alc/backends/alsa.c +++ b/Alc/backends/alsa.c @@ -302,7 +302,8 @@ static DevMap *probe_devices(snd_pcm_stream_t stream, ALuint *count) DevList = malloc(sizeof(DevMap) * 1); DevList[0].name = strdup(alsaDevice); - DevList[0].device = strdup(GetConfigValue("alsa", (stream==SND_PCM_STREAM_PLAYBACK) ? "device" : "capture", "default")); + DevList[0].device = strdup(GetConfigValue("alsa", (stream==SND_PCM_STREAM_PLAYBACK) ? + "device" : "capture", "default")); idx = 1; card = -1; @@ -371,6 +372,7 @@ static DevMap *probe_devices(snd_pcm_stream_t stream, ALuint *count) snprintf(device, sizeof(device), "%sCARD=%s,DEV=%d", device_prefix, cardid, dev); + TRACE("Got device \"%s\", \"%s\"\n", name, device); DevList[idx].name = strdup(name); DevList[idx].device = strdup(device); idx++; -- 2.11.4.GIT