AuRegisterEventHandler(3)
β¨ AuRegisterEventHandler(3) β¨
okay bestie, welcome to the Library Functions Manual π this is AuRegisterEventHandler(3) and she is literally the girl who signs you up for event notifications. no cap. let's get into it π
πΈ NAME πΈ
AuRegisterEventHandler β add an event handler. that's it, that's the whole job, and she does it flawlessly π
π¦ SYNOPSIS π¦
#include <audio/audiolib.h>
AuEventHandlerRec *AuRegisterEventHandler(server, value_mask, type, id,
callback data)
AuServer *server;
AuMask value_mask;
int type;
AuID id;
AuBool (*callback)(AuServer *, AuEvent *, AuEventHandlerRec *);
AuPointer data;
like yes the parameter list is doing a little too much but she's iconic for it β¨
π ARGUMENTS π
serverβ the connection to the audio server, aka your link to the whole situation π«Άvalue_maskβ tells you which values get checked to decide whether this handler should, in fact, handle an event. it should be an inclusive OR ofAuEventHandlerTypeMaskandAuEventHandlerIDMask. bestie it's giving "vibe check: passed" πtypeβ the type of event this handler is gonna handle. pick exactly one of these constants:AuEventTypeElementNotifyAuEventTypeGrabNotifyAuEventTypeMonitorNotify
idβ the source id of the event that's getting handled by this handler π₯callbackβ the procedure that actually handles the event. main character energy fr fr πdataβ extra data you wanna pass along to the event handler πΈ
π DESCRIPTION π
so AuRegisterEventHandler registers an event handler for future use by AuDispatchEvent. she's not doing the work right now, she's setting you up for the work later. preparation queen π§ periodt.
β SEE ALSO β
AuUnregisterEventHandlerβ the one who un-registers. yes they're sisters, don't ask πaudiolibβ Network Audio System C Language Interface π
and that's the whole page bestie!! this lil cutie came to you courtesy of audioutil version 1.9.4 β go forth and handle some events, you absolute legend πβ¨ππ¦πΈπ
π¦ 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