AuMakeSendNotifyAction(3)
π AuMakeSendNotifyAction β the library-functions manual, but make it cute π
okay bestie, so this is a page from the Library Functions Manual, and today's main character is AuMakeSendNotifyAction(3). it's an audiolib thing. it initializes an action. that's the whole vibe. let's get into it π
β¨ Name β¨
AuMakeSendNotifyAction β initialize an action π«Ά
β¨ Synopsis β¨
#include <audio/audiolib.h>
AuMakeSendNotifyAction(action, trigger_state, trigger_prev_state,
trigger_reason)
AuElementAction action; /* RETURN */
unsigned char trigger_state;
unsigned char trigger_prev_state;
unsigned char trigger_reason;
like, yes, it's a macro wearing a function costume, we'll get there π
β¨ Arguments β¨
actionβ this one's theRETURNgirlie: it hands you back the initialized action. she's not an input, she's an output. respect her role πtrigger_stateβ the state that triggers the action. no cap, it must be one of thses constants:AuStateStop,AuStateStart, orAuStatePause. pick wrong and it's giving invalid, so don't πtrigger_prev_stateβ the previous state for the trigger, aka the before-times energy. it must be one of thses constants:AuStateStop,AuStateStart,AuStatePause, orAuStateAny. yes,AuStateAnyis invited to this party too, she's the flexible friend πtrigger_reasonβ the reason for the action. the why, the lore, the backstory. it must be one of these constants:AuReasonUser,AuReasonUnderrun,AuReasonOverrun,AuReasonEOF,AuReasonWatermark,AuReasonHardware, orAuReasonAny. that's seven options bestie, count them, i did π₯
β¨ Description β¨
so what does AuMakeSendNotifyAction actually do? it sets the action field of action to AuElementActionSendNotify β yes the field and the argument share a name, iconic, we love a self-referential moment β and then it initializes all the other fields using the remaining arguments. that's it. that's the whole plot β¨
π§ little heads-up: AuMakeSendNotifyAction is implemented as a macro. so don't be out here taking its address or doing weird function-pointer things, she's a macro, she said what she said π
β¨ See Also β¨
AuMakeChangeStateActionAuMakeNoopActionaudiolibβ Network Audio System C Language Interface πΈ
and that's the page, bestie!! π this was audiolib - action initialization, version 1.9.4, dated AuMakeSendNotifyAction(3) β slay, go initialize an action, you've got this ππ¦β
π¦ 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