AuMakeElementState(3)

πŸ’– NAME πŸ’–

AuMakeElementState β€” she initializes an element state structure, and she does it flawlessly. periodt. πŸ’…


🌸 SYNOPSIS 🌸

#include <audio/audiolib.h>

AuMakeElementState(state, flow, element_num, state)
    AuElementState *state; /* RETURN */
    AuFlowID flow;
    unsigned char element_num;
    unsigned char state;

✨ ARGUMENTS ✨

  • state β€” bestie, this one's the RETURN value: she hands you back the element state structure all initialized and ready to slay. 🫢
  • flow β€” the ID of the flow. yes, THE flow. we love a specified ID. ✨
  • element_num β€” the index of the element inside flow. and if you wanna point at the whole flow instead of one little element? use AuElementAll. iykyk. πŸ‘‘
  • state β€” the state the element is gonna be in. it should be one of these constants, no improvising: AuStateStop, AuStateStart, or AuStatePause. that's it, that's the list, don't be out here making up your own. πŸ’€

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so AuMakeElementState initializes an AuElementState structure for you β€” and it's doing this so that your subsequent call to AuGetElementStates or AuSetElementStates actually has something cute to work with. it's giving setup era. it's giving "do this first." 🌈

also, fun fact, she's implemented as a macro. not a function. a macro. so no, you can't take her address, don't even try. 🧚


😭 ERRORS 😭

  • AuBadFlow
  • AuBadElement
these are the two ways this can go wrong and honestly both are so valid of the library. if you see them, it's a vibe check that did not pass. πŸ’€

audiolib - Network Audio System C Language Interface


and that's the whole page bestie!! πŸŽ€ audiolib β€” element state structur… , version 1.9.4, AuMakeElementState(3) πŸŽ€ mwah, go initialize something iconic. πŸ‘‘πŸ’–

πŸ“¦ where this page comes from