AuSetCloseDownMode(3)

πŸ“¦ version 1.9.5, in fedora 43, fedora 44

πŸ’… AuSetCloseDownMode(3) β€” bestie edition

okay so we're in the Library Functions Manual section, and this one is lowkey about what happens to your stuff when you ghost the audio server. it's giving "who gets the apartment when we break up" energy fr fr. ✨


🌸 NAME 🌸

AuSetCloseDownMode β€” change the close down mode of a client πŸ¦‹


πŸŽ€ SYNOPSIS πŸŽ€

#include <audio/audiolib.h>

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

like yes bestie, that's the whole vibe. void return, three args, no notes. πŸ‘‘


🫢 ARGUMENTS 🫢

  • server β€” the connection to the audio server. your little link to the mothership, your situationship with the sound daemon if you will. πŸ”Œ
  • mode β€” the client close-down mode. it has to be one of these three constants and there is no fourth option, periodt:
    • AuCloseDownDestroy
    • AuCloseDownRetainPermanent
    • AuCloseDownRetainTemporary
  • status β€” if it's non-NULL, this flushes the output buffer and hands you back the status from the server. if you don't care, pass NULL and move on, main character behavior. πŸ’…

✨ DESCRIPTION ✨

AuSetCloseDownMode sets the close-down-mode for client to mode. 🌈

and what even IS a close-down-mode, you ask? it's the rule that decides what happens to the resources created by client when the connection gets closed, or when client gets killed via AuKillClient. so basically: do your little creations survive you, or do they get Thanos-snapped the second you leave the group chat? that's the whole question this function answers. πŸ’€βœ¨

so pick your mode wisely bestie, because it's literally deciding the fate of everything you made. no cap. πŸŽ€


😭 ERRORS 😭

  • AuBadValue β€” yeah, you passed something cursed. it happens to the best of us. πŸ™ˆ

πŸ‘‘ SEE ALSO πŸ‘‘

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

okay that's the whole page, you ate that fr fr. πŸ“

this little love letter lives in the audiolib β€” client connections corner of the manual, version 1.9.5, and yes she's still serving AuSetCloseDownMode(3) energy after all this time. mwah. πŸ’–πŸ§šβœ¨

πŸ“¦ where this page comes from