AuGrabNotifyEvent(3)

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

✨ AuGrabNotifyEvent β€” the grab notify event structure πŸ’…

okay bestie, so this is AuGrabNotifyEvent(3) from the Library Functions Manual, and it's literally the struct that tells you when a component got grabbed or released. it's giving "event union member energy". let's get into it 🫢


🌸 Structures 🌸

first up, you gotta know it lives inside the big AuEvent union. here's the vibe:

#include <audio/audiolib.h>

typedef union _AuEvent
{
    . . .
    AuGrabNotifyEvent augrabnotify;
    . . .
}AuEvent;

typedef struct _AuGrabNotifyEvent
{
    int type;
    AuUint32 serial;
    AuBool send_event;
    AuServer *server;
    AuTime time;
    AuID id;
    unsigned char kind;
    unsigned char pad1;
    unsigned short pad2;
    AuID client;
}AuGrabNotifyEvent;

so yeah, augrabnotify is one of the members hanging out in that union. iconic ✨


πŸŽ€ Members πŸŽ€

every single field, no skips, no cap:

  • type β€” the event type, bestie. GrabNotify events are type AuEventTypeGrabNotify.
  • serial β€” the serial ID of the event, expanded from the 16 bit value the server sent. glow-up fr.
  • send_event β€” AuTrue if the event came from a SendEvent protocol request. otherwise not, obviously πŸ’…
  • server β€” the connection to the audio server that this event was read from.
  • time β€” the server time in milliseconds for when the event was generated. πŸ•
  • id β€” the ID of the component that got grabbed.
  • kind β€” either AuGrabNotifyKindRequested or AuGrabNotifyKindReleased. pick your fighter πŸ₯Š
  • pad1 β€” (no description, it's just padding, we love a filler era πŸ™ˆ)
  • pad2 β€” (same deal, more padding, slay)
  • client β€” the client making the grab.

πŸ¦‹ Description πŸ¦‹

GrabNotify events get sent to client applications to notify them that a component has been grabbed or released. that's the whole point, that's the assignment, periodt. πŸ’–


⭐ Notes ⭐

Not implemented. So this is all just speculation. 😭

like, don't build your whole app around this, bestie, it's a theory not a promise.


🌈 See Also 🌈

  • AuAnyEvent
  • AuElementNotifyEvent
  • AuErrorEvent
  • AuMonitorNotifyEvent
  • audiolib β€” Network Audio System C Language Interface

and that's the whole page πŸŽ€ this was AuGrabNotifyEvent(3), part of audiolib - events, version 1.9.5. thanks for coming to my ted talk, go grab (or release) something, ily 🫢✨

πŸ“¦ where this page comes from