aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-02-26 23:02:29 -0800
committerChris Robinson <[email protected]>2012-02-26 23:02:29 -0800
commitf29fbdf088f8174b079758defc752cadd2f039ab (patch)
treea27a0414d813fe77fe9e91e97726b363bde26628
parent233acff3c4b6d218cbf3698886e9362796e705e2 (diff)
Print enumerated ALSA devices
-rw-r--r--Alc/backends/alsa.c4
1 files changed, 3 insertions, 1 deletions
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++;