diff options
author | Chris Robinson <[email protected]> | 2010-08-01 16:20:28 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2010-08-01 16:20:28 -0700 |
commit | fe6e73ede9c4137992e2945bf4db0d7ab897208b (patch) | |
tree | f41d7d6bf96e7dc3cffc15d51821fbe5e24bafff /Alc/oss.c | |
parent | 8dab4c418cd95a9ceb7ecf3211c1cf97201b7b1e (diff) |
Be a bit more verbose when a device fails to open
Diffstat (limited to 'Alc/oss.c')
-rw-r--r-- | Alc/oss.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -166,8 +166,7 @@ static ALCboolean oss_open_playback(ALCdevice *device, const ALCchar *deviceName if(data->fd == -1) { free(data); - if(errno != ENOENT) - AL_PRINT("Could not open %s: %s\n", driver, strerror(errno)); + AL_PRINT("Could not open %s: %s\n", driver, strerror(errno)); return ALC_FALSE; } @@ -336,8 +335,7 @@ static ALCboolean oss_open_capture(ALCdevice *device, const ALCchar *deviceName) if(data->fd == -1) { free(data); - if(errno != ENOENT) - AL_PRINT("Could not open %s: %s\n", driver, strerror(errno)); + AL_PRINT("Could not open %s: %s\n", driver, strerror(errno)); return ALC_FALSE; } |