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? useAuElementAll. iykyk. πstateβ the state the element is gonna be in. it should be one of these constants, no improvising:AuStateStop,AuStateStart, orAuStatePause. 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 π
AuBadFlowAuBadElement
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
- debian bookworm: libaudio-dev 1.9.4-7
- debian trixie: libaudio-dev 1.9.4-9
- ubuntu jammy: libaudio-dev 1.9.4-7build1
- ubuntu noble: libaudio-dev 1.9.4-8
- ubuntu questing: libaudio-dev 1.9.4-9
- ubuntu resolute: libaudio-dev 1.9.4-9.2
- ubuntu stonking: libaudio-dev 1.9.4-9.2
- 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