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, orAuEventTypeMonitorNotify. 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
- debian bookworm: libaudio-dev 1.9.4-7
- debian trixie: libaudio-dev 1.9.4-9
- ubuntu jammy: libaudio-dev 1.9.4-7build1
- ubuntu noble: libaudio-dev 1.9.4-8
- ubuntu questing: libaudio-dev 1.9.4-9
- ubuntu resolute: libaudio-dev 1.9.4-9.2
- ubuntu stonking: libaudio-dev 1.9.4-9.2
- 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