AuSetErrorHandler(3)
π AuSetErrorHandler(3) β like, the audiolib error-handler glow-up π
okay bestie, pull up a chair, we're in the Library Functions Manual and today's main character is AuSetErrorHandler. she's the one who decides what happens when your audio server connection gets a little messy but, like, not fatal messy. no cap. π
β¨ Name β¨
AuSetErrorHandler β set nonfatal error handler
likeβ¦ you're assigning a bestie to catch the drama when it's not, you know, the end of the world. π
πΈ Synopsis πΈ
#include <audio/audiolib.h>
AuBool (*AuSetErrorHandler(server, handler))()
AuServer *server;
AuBool (*handler)(AuServer *, AuErrorEvent *);
yes she returns a function pointer, we love a return type with layers. periodt. π¦
π«Ά Arguments π«Ά
serverβ the connection to the audio server, aka your little link to the sound-y mothership. she's the one you're setting the handler on. πhandlerβ the non-fatal error handler itself. and listen: useNULLto reinstall the default handler, fr fr. that's the factory reset of error-handling vibes. π
π Description π
so AuSetErrorHandler sets the non-fatal error handler and hands you back the previous handler, which is giving "here's the old one, she's yours now". π
this error handler gets invoked whenever a non-fatal error β an error event β is received. it's literally the designated responder for that exact situation, no cap.
and because this condition is not assumed to be fatal, it is totally acceptable for the error handler to return. like, you can just come back from it. she's allowed to finish her sentence. π
BUT. bestie. listen to me. the error handler should not call any functions (directly or indirectly) on the server that will generate protocol requests, or that will look for input events. that's the line. don't cross it. not even indirectly, that's the sneaky way and it still counts. π
so yeah β catch the vibe, don't poke the server while you're in there. iykyk. π
π₯ See Also π₯
AuServerNameAuGetErrorDatabaseTextAuGetErrorTextAuSetIOErrorHandlerAuSynchronize
audiolib β Network Audio System C Language Interface πΈ
and that's the whole page, bestie!! this was audiolib β error handling, version 1.9.5, dated AuSetErrorHandler(3). she ate and left no crumbs, mwah πβ¨π
π¦ where this page comes from
- fedora 43: nas-devel 1.9.5-11.fc41 Β· MIT
- fedora 43: nas-devel 1.9.5-11.fc41 Β· MIT
- fedora 43: nas-devel 1.9.5-14.fc43 Β· MIT
- fedora 43: nas-devel 1.9.5-14.fc43 Β· MIT
- fedora 44: nas-devel 1.9.5-15.fc44 Β· MIT
- fedora 44: nas-devel 1.9.5-15.fc44 Β· MIT
- copyright 1994 Steven King
- Copyright 1993 Network Computing Devices, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms