AuElement(3)
π AuElement β the union that does it ALL π
okay bestie, welcome to the Library Functions Manual entry for AuElement, and no cap this is one of those pages you're gonna want bookmarked. it's giving union energy. let's get into it π«Ά
β¨ Name β¨
AuElement β it's the AuElement union, bestie. that's the whole name. iconic, brief, slays. π
π Structures π
first things first, you gotta pull in the header or literally nothing works:
#include <audio/audiolib.h>
and here's the union itself, copy it exactly, don't get creative:
typedef union _AuElement
{
unsigned short type;
AuElementImportClient importclient;
AuElementImportDevice importdevice;
AuElementImportBucket importbucket;
AuElementImportWaveForm importwaveform;
AuElementBundle bundle;
AuElementMultiplyConstant multiplyconstant;
AuElementAddConstant addconstant;
AuElementSum sum;
AuElementExportClient exportclient;
AuElementExportDevice exportdevice;
AuElementExportBucket exportbucket;
AuElementExportMonitor exportmonitor;
}AuElement;
it's a union, so all of these live in the same spot in memory and you only get one at a time. it's giving "pick your fighter" but make it C. πΈ
π Members π
here's the whole cast, every single one, we are NOT skipping anybody:
typeβ tells you what kind of element this is. rn it's one of these constants, and yes you need to know them:AuElementTypeAddConstant,AuElementTypeBundle,AuElementTypeExportBucket,AuElementTypeExportClient,AuElementTypeExportDevice,AuElementTypeExportMonitor,AuElementTypeImportClient,AuElementTypeImportDevice,AuElementTypeImportBucket,AuElementTypeImportWaveForm,AuElementTypeMultiplyConstant, orAuElementTypeSum. that's the vibe check right there. βimportclientβ for reading audio data from a client application. π₯importdeviceβ for reading audio data from a device. π§importbucketβ for reading audio data from a bucket. πͺ£importwaveformβ for reading audio data from a waveform generator. πbundleβ for accessing tracks in audio data. ποΈmultiplyconstantβ scales the value of samples in audio data (aka it multiplies them, hence the name, she's literal). βοΈaddconstantβ offsets the value of samples in audio data. βsumβ merges together samples from different inputs. literally the "and they were roommates" of audio. π«exportclientβ for writing audio data to a client application. π€exportdeviceβ for writing audio data to a device. πexportbucketβ for writing audio data to a bucket. πͺ£exportmonitorβ for writing monitor data to a client application. π
π Description π
so basically: elements are instructions to the server telling it how to handle the audio data in a flow. that's it. that's the whole job. they're little notes you hand the server like "hey bestie do this with these samples" and the server goes "bet". π§
π See Also π
go read these next, they're all part of the same friend group:
AuMakeElementAddConstantAuMakeElementBundleAuMakeElementImportClientAuMakeElementImportDeviceAuMakeElementImportBucketAuMakeElementImportWaveFormAuMakeElementExportClientAuMakeElementExportDeviceAuMakeElementExportBucketAuMakeElementExportMonitorAuMakeElementMultiplyConstantAuMakeElementSumAuReadElementAuSetElementsAuSetElementParametersAuWriteElementaudiolibβ Network Audio System C Language Interface. the whole entire ecosystem, periodt. π
ok that's the page fr fr, go build something cute with your audio flow, mwah ππ
k bye bestie, this was the audiolib β element union page, version 1.9.4, filed under AuElement(3). slay, bookmark it, tell your friends. π
β¨
π¦ 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