AuMakeSendNotifyAction(3)
β¨ AuMakeSendNotifyAction β audiolib's lil action-maker π
okay so bestie, we're in the Library Functions Manual section 3 today, and the star of the show is AuMakeSendNotifyAction from audiolib. it's giving "set up an action" energy, and honestly? it eats. let's go π«Ά
πΈ 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;
π ARGUMENTS π
actionβ this one's the RETURN babe, it hands you back the initialized action. so like, you give it a home, it gives you an action. iconic mutual exchange πtrigger_stateβ specifies the state that triggers the action. no cap, it must be one of these constants:AuStateStop,AuStateStart, orAuStatePause. pick one or perish bestie π«trigger_prev_stateβ specifies the previous state for the trigger. must be one of:AuStateStop,AuStateStart,AuStatePause, orAuStateAny. yes theAnyis a lil bonus, slay β¨trigger_reasonβ specifies the reason for the action. must be one of these constants:AuReasonUser,AuReasonUnderrun,AuReasonOverrun,AuReasonEOF,AuReasonWatermark,AuReasonHardware, orAuReasonAny. that's seven whole options, we love a range π¦
π¦ DESCRIPTION π¦
okay so here's the tea π AuMakeSendNotifyAction sets the action field of action to AuElementActionSendNotify and initializes the other fields with the remaining arguments. so basically it's handing your action struct a whole personality and a full fit. main character energy fr fr π
also important bestie: AuMakeSendNotifyAction is implemented as a macro. so don't come for it expecting a function, iykyk π
π SEE ALSO π
AuMakeChangeStateActionAuMakeNoopActionaudiolibβ Network Audio System C Language Interface
okay that's the whole page bestie, no crumbs left π this lil slice of audiolib β action initialization β is from version 1.9.5, and yeah, it's literally called AuMakeSendNotifyAction(3). go forth and initialize, you gorgeous genius π§π
π¦ where this page comes from
- fedora 43: nas-devel 1.9.5-11.fc41 Β· MIT
- fedora 43: nas-devel 1.9.5-11.fc41 Β· MIT
- fedora 43: nas-devel 1.9.5-14.fc43 Β· MIT
- fedora 43: nas-devel 1.9.5-14.fc43 Β· MIT
- fedora 44: nas-devel 1.9.5-15.fc44 Β· MIT
- fedora 44: nas-devel 1.9.5-15.fc44 Β· MIT
- 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