summaryrefslogtreecommitdiffstats
path: root/Alc/oss.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2007-12-12 03:36:52 -0800
committerChris Robinson <[email protected]>2007-12-12 03:36:52 -0800
commitfc0a7ea4244e3e1bd1a02b384e8a6145abb0e8c3 (patch)
tree797a8f06a31a741462e75f2fdaab9a2803201af7 /Alc/oss.c
parent0f3e13ed7c54b21629ee6bbe749ceaab5e4bb6fb (diff)
Print an error when OSS fails to open the audio device
Diffstat (limited to 'Alc/oss.c')
-rw-r--r--Alc/oss.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Alc/oss.c b/Alc/oss.c
index 1b8b0847..e1aba0b3 100644
--- a/Alc/oss.c
+++ b/Alc/oss.c
@@ -138,6 +138,7 @@ static ALCboolean oss_open_playback(ALCdevice *device, const ALCchar *deviceName
if(data->fd == -1)
{
free(data);
+ AL_PRINT("Could not open %s: %s\n", driver, strerror(errno));
return ALC_FALSE;
}