AuEvent(3)

πŸ‘‘ AuEvent(3) β€” the event union, bestie ✨

okay so welcome to the Library Functions Manual, section 3, and today's main character is AuEvent πŸ’– she's a union, she's a vibe, she holds literally every kind of event the Network Audio System wants to send your way. let's get into it πŸ¦‹


🌸 Name 🌸

AuEvent β€” event union. yes that's it, that's the whole name, and honestly? iconic.


πŸŽ€ Structures πŸŽ€

first things first, you gotta pull her in:

#include <audio/audiolib.h>

and then, the queen herself:

typedef union _AuEvent
{
    int type;
    AuAnyEvent auany;
    AuElementNotifyEvent auelementnotify;
    AuMonitorNotifyEvent aumonitornotify;
    AuGrabNotifyEvent augrabnotify;
    AuErrorEvent auerror;
}AuEvent;

she's a union so like, one of these at a time, the type member is your girl telling you which one you're actually looking at πŸ‘€ no cap.


✨ Members ✨

  • type β€” tells you the event type. rn the event types defined are: AuEventTypeElementNotify, AuEventTypeGrabNotify, or AuEventTypeMonitorNotify. read this first, always, she's the vibe check 🌈
  • auany β€” a generic event structure holding the members that all event types share. like the group chat everyone's in πŸ’…
  • auelementnotify β€” sent to client applications to notify them of a watermark condition or a state change. lowkey the most dramatic one, she's always got news πŸ“£
  • aumonitornotify β€” sent to client applications to notify them of monitor data. she's just keeping you in the loop, very thoughtful of her 🫢
  • augrabnotify β€” Not Implemented. 😭 yeah. she's not here. do not expect her. do not build on her. fr fr.
  • auerror β€” sent to client applications to notify them of non-fatal errors encountered while processing requests. not fatal, just a little "bestie we hit a snag" πŸ’€

πŸ’œ Description πŸ’œ

Events are the principal mechanism for the server to communicate with a client application. that's it, that's the whole relationship β€” the server speaks, you listen, and AuEvent is the envelope every message shows up in πŸ“¬βœ¨


πŸ¦‹ See Also πŸ¦‹

  • audiolib β€” Network Audio System C Language Interface

heads up bestie: augrabnotify is literally Not Implemented, so if you were planning a whole thing around it, maybe don't πŸ₯²

and that's the page!! πŸŽ€ this was audiolib - events, version 1.9.4, dated 1.9.4 β€” mwah, slay, go forth and handle your events, i'm obsessed with you, periodt πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from