AuSetCloseDownMode(3)

πŸ’– Name πŸ’–

AuSetCloseDownMode β€” bestie, this one changes the close down mode of a client ✨


🌸 Synopsis 🌸

#include <audio/audiolib.h>

void AuSetCloseDownMode(server, mode, status)
    AuServer *server;
    int mode;
    AuStatus *status; /* RETURN */

πŸŽ€ Arguments πŸŽ€

  • server β€” the connection to the audio server. like, which server are we talking to, yk? 🫢
  • mode β€” the client close-down mode, and no cap, it has to be one of these three constants and nothing else: AuCloseDownDestroy, AuCloseDownRetainPermanent, or AuCloseDownRetainTemporary. pick your fighter πŸ’…
  • status β€” if it's non-NULL, it flushes the output buffer and hands you back the status from the server. if it's NULL, it just… doesn't. no thoughts, head empty πŸ™ˆ

✨ Description ✨

okay so AuSetCloseDownMode sets the close-down-mode for client to mode. simple as that, periodt.

and the close-down-mode is lowkey the main character here, because it decides what happens to the resources that client created when either:

  • the connection gets closed, or
  • client gets killed via AuKillClient

so yeah. it's giving "what's my legacy when i'm gone" energy πŸ‘‘ choose wisely bestie.


πŸ’€ Errors πŸ’€

AuBadValue.

that's it. that's the list. it's not happy with your value, it says so, moving on 😭


🌈 See Also 🌈

  • AuCloseServer
  • AuGetCloseDownMode
  • audiolib β€” Network Audio System C Language Interface

mwah πŸ’œ that's the whole page. this icon was brought to you by audiolib β€” client connections, version 1.9.4. go forth and set your close-down modes, you gorgeous thing πŸ¦‹βœ¨

πŸ“¦ where this page comes from