Print an error when OSS fails to open the audio device

This commit is contained in:
Chris Robinson
2007-12-12 03:36:52 -08:00
parent 0f3e13ed7c
commit fc0a7ea424
+1
View File
@@ -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;
}