diff options
author | Chris Robinson <[email protected]> | 2018-02-03 13:54:42 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-02-03 13:54:42 -0800 |
commit | b99e64a0e3759d326b53578516a4ca5084046e7c (patch) | |
tree | 4ebac51460010301a7d841c3bf87a44c518f19d9 /Alc/backends/oss.c | |
parent | e49607078e7d34eaf2f7daecc2ee6bf6ece353c4 (diff) |
Provide more descriptive messages to disconnection events
Diffstat (limited to 'Alc/backends/oss.c')
-rw-r--r-- | Alc/backends/oss.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Alc/backends/oss.c b/Alc/backends/oss.c index b2d9c555..9b0c2d42 100644 --- a/Alc/backends/oss.c +++ b/Alc/backends/oss.c @@ -299,7 +299,7 @@ static int ALCplaybackOSS_mixerProc(void *ptr) if(errno == EINTR) continue; ERR("select failed: %s\n", strerror(errno)); - aluHandleDisconnect(device); + aluHandleDisconnect(device, "Failed waiting for playback buffer: %s", strerror(errno)); break; } else if(sret == 0) @@ -319,7 +319,8 @@ static int ALCplaybackOSS_mixerProc(void *ptr) if(errno == EAGAIN || errno == EWOULDBLOCK || errno == EINTR) continue; ERR("write failed: %s\n", strerror(errno)); - aluHandleDisconnect(device); + aluHandleDisconnect(device, "Failed writing playback samples: %s", + strerror(errno)); break; } @@ -566,7 +567,7 @@ static int ALCcaptureOSS_recordProc(void *ptr) if(errno == EINTR) continue; ERR("select failed: %s\n", strerror(errno)); - aluHandleDisconnect(device); + aluHandleDisconnect(device, "Failed to check capture samples: %s", strerror(errno)); break; } else if(sret == 0) @@ -583,7 +584,7 @@ static int ALCcaptureOSS_recordProc(void *ptr) { ERR("read failed: %s\n", strerror(errno)); ALCcaptureOSS_lock(self); - aluHandleDisconnect(device); + aluHandleDisconnect(device, "Failed reading capture samples: %s", strerror(errno)); ALCcaptureOSS_unlock(self); break; } |