AUMAKEELEMENTIMPORTCLIENT(3x)
π AuMakeElementImportClient(3) π
okay so bestie, welcome to section 3 of the library functions manual π this one's about a lil function called AuMakeElementImportClient, and it's literally the glow-up ritual for an ImportClient element. it's giving "makeover montage but for audio structs" β¨
πΈ NAME πΈ
AuMakeElementImportClient β initialize an ImportClient element π
β¨ SYNOPSIS β¨
#include <audio/audiolib.h>
AuMakeElementImportClient(element, sample_rate, format, num_tracks,
discard, max_samples, low_water_mark, num_actions, actions)
AuElement *element; /* RETURN */
unsigned short sample_rate;
unsigned char format;
unsigned char num_tracks;
unsigned char discard;
AuUint32 max_samples;
AuUint32 low_water_mark;
int num_actions;
AuElementAction *actions;
like look at that signature, it ate and left no crumbs π₯
π«Ά ARGUMENTS π«Ά
elementβ this is the RETURN girlie π« she gets handed back to you all initialized and ready to slay.sample_rateβ the sample rate of the audio data. iykyk, don't mess it up.formatβ the format of the audio data. rn the following formats are defined, and that's the whole list, no cap:AuFormatULAW8AuFormatLinearUnsigned8AuFormatLinearSigned8AuFormatLinearSigned16MSBAuFormatLinearUnsigned16MSBAuFormatSignedLinear16LSBAuFormatLinearUnsigned16LSB
num_tracksβ how many tracks are in the audio data. yes, plural, she can multitask πdiscardβ specifies if the import should be paused initally. normallyAuTrue.AuFalsemay crash the server. not me saying this dramatically but like, it may crash the server, so bestie please just useAuTrueπmax_samplesβ the maximum number of samples to accept in a single read. lowkey ignored for "trivial" flows πlow_water_markβ this one tells you when to go beg the client application for more audio data. so when this number of samples are left in the buffer, and an EOF hasn't been received, aNotifyEventwith kind set toAuElementNotifyKindLowWatergets sent to the client application. it's giving "hey bestie we're running low, restock pls" πnum_actionsβ the number of actions inactions. simple as.actionsβ the list of actions to associate with this element. entries in this list can be initialized withAuMakeChangeStateAction,AuMakeSendNotifyAction, andAuMakeNoopAction. may beNULL. no actions? no problem π¦
π DESCRIPTION π
AuMakeElementImportClient sets the type of element to AuElementTypeImportClient and initializes the importclient member of element with the remaining arguments. that's the whole vibe β¨
also, tea time β AuMakeElementImportClient is implemented as a macro. not a regular function. a macro. periodt.
π SEE ALSO π
the whole friend group fr fr:
AuMakeElementAddConstantAuMakeElementBundleAuMakeElementExportClientAuMakeElementExportDeviceAuMakeElementExportBucketAuMakeElementExportMonitorAuMakeElementImportDeviceAuMakeElementImportBucketAuMakeElementImportWaveFormAuMakeElementMultiplyConstantAuMakeElementSumaudiolibβ Network Audio System C Language Interface π
that's it bestie, go initialize something iconic π
okay that's the whole page, sending you love from audiolib β element initialization, version 1.9.5, and yeah the header/footer were doing that AuMakeElem...mportClient(3) abbreviating thing the whole time because the terminal is dramatic like that π mwah, bye! πππ¦
π¦ where this page comes from
- fedora 43: nas-devel 1.9.5-11.fc41 Β· MIT
- fedora 43: nas-devel 1.9.5-11.fc41 Β· MIT
- fedora 43: nas-devel 1.9.5-14.fc43 Β· MIT
- fedora 43: nas-devel 1.9.5-14.fc43 Β· MIT
- fedora 44: nas-devel 1.9.5-15.fc44 Β· MIT
- fedora 44: nas-devel 1.9.5-15.fc44 Β· MIT
- 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