aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/alsa.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2009-03-10 01:46:51 -0700
committerChris Robinson <[email protected]>2009-03-10 01:46:51 -0700
commitf8949ee7a13fc2c789c89b4f5d05ccdb24215cec (patch)
tree751a61e2342651f324a034e9607501e18bbc01fd /Alc/alsa.c
parent62aa2d0ba7562fadda2e7588842ad1a8b227c86e (diff)
Always add the default ALSA device even if no cards are present
Diffstat (limited to 'Alc/alsa.c')
-rw-r--r--Alc/alsa.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/Alc/alsa.c b/Alc/alsa.c
index 3bc3b915..f609ab8d 100644
--- a/Alc/alsa.c
+++ b/Alc/alsa.c
@@ -955,11 +955,9 @@ LOAD_FUNC(snd_card_next);
card = -1;
if(psnd_card_next(&card) < 0 || card < 0)
AL_PRINT("no playback cards found...\n");
- else
- {
- alsaDevice = AppendDeviceList("ALSA Software");
- allDevNameMap[0].name = AppendAllDeviceList("ALSA Software on default");
- }
+
+ alsaDevice = AppendDeviceList("ALSA Software");
+ allDevNameMap[0].name = AppendAllDeviceList("ALSA Software on default");
while (card >= 0) {
sprintf(name, "hw:%d", card);