AuMakeNoopAction(3)

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

πŸ’– AuMakeNoopAction β€” from the Library Functions Manual, bestie πŸ’–

okay so. you're in audio/audiolib.h land, you want an action that does literally nothing (iconic behaviour, honestly), and this little macro is gonna set you up. no cap. it's giving "silence, but make it intentional." ✨


✨ 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 one, babe. it's where the freshly initialized action gets handed back to you. πŸ’…
  • trigger_state β€” specifies the state that triggers the action. this one must be one of these constants: AuStateStop, AuStateStart, AuStatePause, or AuStateAny.
  • trigger_prev_state β€” specifies the previous state for the trigger. and yeah, same deal, it must be one of: AuStateStop, AuStateStart, AuStatePause, or AuStateAny.
  • trigger_reason β€” specifies the reason for the action. this one must be one of these constants: AuReasonUser, AuReasonUnderrun, AuReasonOverrun, AuReasonEOF, AuReasonWatermark, AuReasonHardware, or AuReasonAny. so many reasons, so little time 😭
ngl the original page spells it "thses" twice β€” we're keeping the vibe but know that the constants list is the real one, and if you pass something outside those lists you're on your own. πŸ™ˆ

🌈 Description 🌈

so here's the tea πŸ“ β€” AuMakeNoopAction sets the action field of action to AuElementActionNoop, and then initializes the other fields with the remaining arguments. that's it. that's the whole thing. it's a noop, it's chillin', it's not doing anything, and that's exactly what you asked for. πŸ‘‘

and the fun part? AuMakeNoopAction is implemented as a macro. so don't go trying to take its address or whatever, bestie, it's a macro, periodt. πŸ’€


πŸ‘‘ See Also πŸ‘‘

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

and that's the whole page, bestie!! 🫢 this was audiolib - action initialization, version 1.9.5, from the AuMakeNoopAction(3) manual page β€” go forth and initialize your noops, mwah πŸ’œπŸ§šβ€β™€οΈ

πŸ“¦ where this page comes from