AuMakeNoopAction(3)
π 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, orAuStateAny.trigger_prev_stateβ specifies the previous state for the trigger. and yeah, same deal, it must be one of:AuStateStop,AuStateStart,AuStatePause, orAuStateAny.trigger_reasonβ specifies the reason for the action. this one must be one of these constants:AuReasonUser,AuReasonUnderrun,AuReasonOverrun,AuReasonEOF,AuReasonWatermark,AuReasonHardware, orAuReasonAny. 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 π
AuMakeChangeStateActionAuMakeSendNotifyActionaudiolibβ 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
- 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