Print an error when ALSA fails to open the audio device

This commit is contained in:
Chris Robinson
2007-12-12 03:41:37 -08:00
parent fc0a7ea424
commit 7ade93e38c
+2
View File
@@ -321,6 +321,7 @@ open_alsa:
if(i < 0)
{
free(data);
AL_PRINT("Could not open playback device '%s': %s\n", driver, psnd_strerror(i));
return ALC_FALSE;
}
@@ -474,6 +475,7 @@ open_alsa:
if(i < 0)
{
free(data);
AL_PRINT("Could not open capture device '%s': %s\n", driver, psnd_strerror(i));
return ALC_FALSE;
}