AuMakeSendNotifyAction(3)

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

✨ AuMakeSendNotifyAction β€” audiolib's lil action-maker πŸ’–

okay so bestie, we're in the Library Functions Manual section 3 today, and the star of the show is AuMakeSendNotifyAction from audiolib. it's giving "set up an action" energy, and honestly? it eats. let's go 🫢


🌸 NAME 🌸

AuMakeSendNotifyAction β€” initialize an action ✨


πŸŽ€ SYNOPSIS πŸŽ€

#include <audio/audiolib.h>

AuMakeSendNotifyAction(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 one's the RETURN babe, it hands you back the initialized action. so like, you give it a home, it gives you an action. iconic mutual exchange πŸ’–
  • trigger_state β€” specifies the state that triggers the action. no cap, it must be one of these constants: AuStateStop, AuStateStart, or AuStatePause. pick one or perish bestie 🚫
  • trigger_prev_state β€” specifies the previous state for the trigger. must be one of: AuStateStop, AuStateStart, AuStatePause, or AuStateAny. yes the Any is a lil bonus, slay ✨
  • trigger_reason β€” specifies the reason for the action. must be one of these constants: AuReasonUser, AuReasonUnderrun, AuReasonOverrun, AuReasonEOF, AuReasonWatermark, AuReasonHardware, or AuReasonAny. that's seven whole options, we love a range πŸ¦‹

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea πŸ“ AuMakeSendNotifyAction sets the action field of action to AuElementActionSendNotify and initializes the other fields with the remaining arguments. so basically it's handing your action struct a whole personality and a full fit. main character energy fr fr πŸ‘‘

also important bestie: AuMakeSendNotifyAction is implemented as a macro. so don't come for it expecting a function, iykyk πŸ’€


🌈 SEE ALSO 🌈

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

okay that's the whole page bestie, no crumbs left πŸ’œ this lil slice of audiolib β€” action initialization β€” is from version 1.9.5, and yeah, it's literally called AuMakeSendNotifyAction(3). go forth and initialize, you gorgeous genius πŸ§šπŸ’–

πŸ“¦ where this page comes from