aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2007-12-12 03:41:37 -0800
committerChris Robinson <[email protected]>2007-12-12 03:41:37 -0800
commit7ade93e38c531c9d252a7ebf05065c7e3fc928ff (patch)
tree59e0a06c79d441392252b40dd148b3904743e155 /Alc
parentfc0a7ea4244e3e1bd1a02b384e8a6145abb0e8c3 (diff)
Print an error when ALSA fails to open the audio device
Diffstat (limited to 'Alc')
-rw-r--r--Alc/alsa.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Alc/alsa.c b/Alc/alsa.c
index 48f7a358..a888843a 100644
--- a/Alc/alsa.c
+++ b/Alc/alsa.c
@@ -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;
}