Don't stop looking for devices if one can't be opened.

This commit is contained in:
Paul van Schayck 2005-03-31 10:07:02 +00:00 committed by Alexandre Julliard
parent 3d0b22b7b6
commit d2c7a6863b
1 changed files with 2 additions and 2 deletions

View File

@ -831,7 +831,7 @@ LONG ALSA_WaveInit(void)
h = NULL;
snd_pcm_open(&h, wwo->device, SND_PCM_STREAM_PLAYBACK, SND_PCM_NONBLOCK);
if (!h)
break;
continue;
EXIT_ON_ERROR( snd_pcm_info(h, info) , "pcm info" );
@ -993,7 +993,7 @@ LONG ALSA_WaveInit(void)
h = NULL;
snd_pcm_open(&h, wwi->device, SND_PCM_STREAM_CAPTURE, SND_PCM_NONBLOCK);
if (!h)
break;
continue;
EXIT_ON_ERROR( snd_pcm_info(h, info) , "pcm info" );