AuMakeNoopAction(3)

πŸ’– AuMakeNoopAction β€” like, the manual page for it πŸ’–

okay bestie, pull up a chair, we're talking about AuMakeNoopAction from the audiolib crew β€” that's the Library Functions Manual corner of the world. it's a lil macro that sets up an action for you and honestly? it's giving "does nothing, slays anyway." πŸŽ€


✨ Name ✨

AuMakeNoopAction β€” initialize an action πŸ’…


🌸 Synopsis 🌸

#include <audio/audiolib.h>

AuMakeNoopAction(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 is the RETURN girlie. after the call, it holds your freshly initialized action. 🫢
  • trigger_state β€” the state that triggers the action, bestie. it must be one of these constants: AuStateStop, AuStateStart, AuStatePause, or AuStateAny. no custom vibes allowed, it's a closed list, periodt. πŸ”₯
  • trigger_prev_state β€” the previous state for the trigger. and yes, it must also be one of these constants: AuStateStop, AuStateStart, AuStatePause, or AuStateAny. same energy, different slot. ✨
  • trigger_reason β€” the reason for the action. this one must be one of these constants: AuReasonUser, AuReasonUnderrun, AuReasonOverrun, AuReasonEOF, AuReasonWatermark, AuReasonHardware, or AuReasonAny. pick from the list or it's a no. πŸ’€

πŸ‘‘ Description πŸ‘‘

so what does AuMakeNoopAction actually do, you ask? it sets the action field of action to AuElementActionNoop, and then initializes all the other fields using the rest of the arguments you handed it. that's it. that's the whole plot. 🌈

and the plot twist: AuMakeNoopAction is implemented as a macro. so like, it's not a real function out here living its life β€” it's a macro, iykyk. 🧚


πŸ’œ See Also πŸ’œ

  • AuMakeChangeStateAction
  • AuMakeSendNotifyAction
  • audiolib β€” Network Audio System C Language Interface ⭐

and that's the whole page, bestie!! this was the audiolib β€” action initialization section, version 1.9.4, brought to you by the AuMakeNoopAction(3) girlies. go forth and initialize responsibly. mwah. πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from