AuMakeChangeStateAction(3)
β¨ AuMakeChangeStateAction β¨
okay bestie, so this one is from audiolib β the Network Audio System C Language Interface, aka the library functions manual β and it's about making an action that changes a state. it's giving very "setup girlie" energy: you hand it a bunch of stuff, it fills in a lil struct for you. no cap. π
π NAME π
AuMakeChangeStateAction β initialize an action π
πΈ SYNOPSIS πΈ
#include <audio/audiolib.h>
AuMakeChangeStateAction(action, trigger_state, trigger_prev_state,
trigger_reason, flow, element_num, new_state)
AuElementAction action; /* RETURN */
unsigned char trigger_state;
unsigned char trigger_prev_state;
unsigned char trigger_reason;
AuFlowID flow;
unsigned char element_num;
unsigned char new_state;
π¦ ARGUMENTS π¦
actionβ this one's the RETURN value, bestie. it hands you back the initialized action. β¨trigger_stateβ tells you which state is the one that triggers the action. it must be one of these constants:AuStateStop,AuStateStart,AuStatePause, orAuStateAny. pick one, no freelancing. πtrigger_prev_stateβ the previous state for the trigger. must be one of:AuStateStop,AuStateStart,AuStatePause, orAuStateAny. yes it's the same list, no i'm not messing with you. π«Άtrigger_reasonβ the reason for the action. must be one of these constants:AuReasonUser,AuReasonUnderrun,AuReasonOverrun,AuReasonEOF,AuReasonWatermark,AuReasonHardware, orAuReasonAny. seven options, main character energy, choose wisely. πflowβ the ID of the flow you're affecting. the flow. THE flow. β¨element_numβ the index of the element to affect. it's an index, so like, numbers. π’new_stateβ the new state for the flow. must be one of these constants:AuStateStop,AuStateStart, orAuStatePause. notice thatAuStateAnyis NOT on this list β it's a real new state, not a vibe. π
π DESCRIPTION π
so AuMakeChangeStateAction sets the action field of action to AuElementActionChangeState and initializes all the other fields with the remaining arguments. that's it, that's the whole job. she's efficient. she ate. π₯
also important: AuMakeChangeStateAction is implemented as a macro. so like, don't go taking its address or whatever, iykyk. π
π SEE ALSO π
AuMakeSendNotifyAction,AuMakeNoopActionβ the other action-makers, go say hi πaudiolibβ Network Audio System C Language Interface
and that's the page, bestie!! this was audiolib β action initialization, version 1.9.5 π thanks for reading, ily, go initialize an action, periodt πβ¨π¦
π¦ 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