AuElementState(3)
β¨ AuElementState(3) β¨
okay bestie, pull up a chair π this is a page from the Library Functions Manual, and it's about AuElementState β yes, that's the whole name, AuElementState(3), section 3, library functions, we're in the grown-up section but we're still gonna have fun.
π Name π
AuElementState β the element state structure. that's it, that's the vibe. element state structure π
π¦ Structures π¦
first things first, you gotta pull in the header:
#include <audio/audiolib.h>
and here's the struct, in all its glory, no cap:
typedef struct _AuElementState
{
AuFlowID flow;
unsigned char element_num;
unsigned char state;
unsigned short pad;
}AuElementState;
look at her. she's small but she's doing so much. π
π Members π
flowβ specifies the flow. that's the flow, babe. πelement_numβ specifies the index of the element of interest. and here's the plot twist: if you wanna reach the state of the flow itself, useAuElementAll. yes literally, that's the move. useAuElementAllto access the state of the flow. πΈstateβ specifies the state of the element (or flow) specified byelement_num. this one has to be one of these constants, and only these:AuStateStopAuStateStartAuStatePause
pick one, bestie, those are the options. no improvising. π―
π Description π
so the AuElementState structure is the thing you use to access the state of elements inside a flow. simple concept, big responsibility. π«Ά
and here's the part people always miss β not everything has state. only flows and component elements do. the component elements are:
ExportBucketExportClientExportDeviceImportClientImportDeviceImportBucketImportWaveForm
those seven. if it's not a flow and it's not on that list, it does not have state, and it's not gonna have state, periodt. π don't ask it for one.
β See Also β
AuGetElementStatesAuMakeElementStateAuGetElementStates
(yes it's listed twice, and honestly? iconic. we love a callback. π₯)
audiolibβ Network Audio System C Language Interface
and that's the whole page, mwah π go forth and check your element states, you've got this, i believe in you fr fr π§β¨
this page is from audiolib, version 1.9.4, dated with all the love of AuElementState(3) β audiolib - element state structure, and that's the sign-off, byeee ππ
π¦ 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