AuMakeChangeStateAction(3)

πŸ“¦ version 1.9.5, in fedora 43, fedora 44

✨ 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, or AuStateAny. pick one, no freelancing. πŸ™ˆ
  • trigger_prev_state β€” the previous state for the trigger. must be one of: AuStateStop, AuStateStart, AuStatePause, or AuStateAny. 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, or AuReasonAny. 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, or AuStatePause. notice that AuStateAny is 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