AUMAKEELEMENTEXPORTCLIENT(3nas)
β¨ NAME β¨
AuMakeElementExportClient β bestie, this one initializes an ExportClient element π
So like, this is from the audiolib library functions manual, section 3. We're setting up an element that exports audio data to a client, and it's giving main character energy.
πΈ SYNOPSIS πΈ
#include <audio/audiolib.h>
AuMakeElementExportClient(element, input, sample_rate, format,
num_tracks, discard, max_samples, high_water_mark, num_actions, actions)
AuElement *element; /* RETURN */
unsigned short input;
unsigned short sample_rate;
unsigned char format;
unsigned char num_tracks;
unsigned char discard;
AuUint32 max_samples;
AuUint32 high_water_mark;
int num_actions;
AuElementAction *actions;
π ARGUMENTS π
Okay so here's the whole cast, no skips, we're listing every single one fr fr:
elementβ this is the output, bestie. It returns the initialized element. Marked/* RETURN */in the synopsis so you know it's the one getting filled in πinputβ specifies the index of the element that's supplying the audio data to this element. Like, who's handing us the aux cord πsample_rateβ specifies the sample rate of the audio data. The tempo, basically.formatβ specifies the format of the audio data. Currently these formats are defined:AuFormatULAW8,AuFormatLinearUnsigned8,AuFormatLinearSigned8,AuFormatLinearSigned16MSB,AuFormatLinearUnsigned16MSB,AuFormatSignedLinear16LSB, andAuFormatLinearUnsigned16LSB. Pick your fighter β¨num_tracksβ specifies the number of tracks in the audio data.discardβ specifies if the flow should pause initially. NormallyAuTrue. Yes bestie, normally it just sits there paused at first, that's the vibe.max_samplesβ specifies the maximum number of samples to send to the client in a single write. Heads up though: this one is ignored for "trivial" flows. She said not applicable, sorry πhigh_water_markβ specifies when to tell the client application to read the audio data from the server. When this number of samples is reached in the buffer, anElementNotifyevent with kind set toAuElementNotifyKindHighWaterwill be sent to the client application. Basically the "hey bestie come get your data" alarm π¨num_actionsβ specifies the number of actions inactions.actionsβ specifies the list of actions to associate with this element. Entries in this list can be initialized withAuMakeChangeStateAction,AuMakeSendNotifyAction, andAuMakeNoopAction. May beNULL. So like, optional, she can show up empty-handed π«Ά
π DESCRIPTION π
AuMakeElementExportClient sets the type member of element to AuElementTypeExportClient and initializes the exportclient member of element with the remaining arguments.
And the plot twist: AuMakeElementExportClient is implemented as a macro. Not a real function, a macro. iykyk π¦
π SEE ALSO π
The whole friend group, in order:
AuElementNotifyEventAuMakeElementAddConstantAuMakeElementBundleAuMakeElementExportBucketAuMakeElementExportDeviceAuMakeElementExportMonitorAuMakeElementImportBucketAuMakeElementImportClientAuMakeElementImportDeviceAuMakeElementImportWaveFormAuMakeElementMultiplyConstantAuMakeElementSum
Also: audiolib β Network Audio System C Language Interface π
k bye bestie, go forth and initialize your elements, you're literally doing amazing π β¨
this was audiolib - element initialization, version 1.9.4, from AuMakeElem...xportClient(3) β mwah, obsessed, periodt π
π¦ 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