AUMAKEELEMENTIMPORTCLIENT(3nas)
β¨ AuMakeElementImportClient β¨
okay bestie, welcome to the Library Functions Manual corner of the audio world π this one's all about AuMakeElementImportClient β the lil function that gets your ImportClient element all set up and ready to be the main character. it's 3nas energy, fr fr.
π NAME π
AuMakeElementImportClient β initialize an ImportClient element
like. that's the whole job. it initializes. it's giving setup era. π
π¦ 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;
no cap, that's the exact signature. copy it character for character, don't be out here freehanding it π
πΈ ARGUMENTS πΈ
elementβ this one's the RETURN girlie π«Ά it hands you back the initialized element. that's the whole point.sample_rateβ the sample rate of the audio data. yes, it matters. it always matters.formatβ the format of the audio data. rn, these are the formats that are defined:AuFormatULAW8AuFormatLinearUnsigned8AuFormatLinearSigned8AuFormatLinearSigned16MSBAuFormatLinearUnsigned16MSBAuFormatSignedLinear16LSBAuFormatLinearUnsigned16LSB
that's the whole list, bestie. no more, no less. β
num_tracksβ how many tracks are in the audio data. count 'em.discardβ specifies if the import should be paused initially. normally you wantAuTrue.
β οΈ okay so this is the scary one:AuFalsemay crash the server. like, actually. do not play with that.AuTrue. just sayAuTrue. π
max_samplesβ the maximum number of samples to accept in a single read. ignored for "trivial" flows β the quotes are theirs, not mine, iykyk.low_water_markβ this is your β¨vibe checkβ¨ for when to go ask the client application for more audio data. 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. so it's like the little tap on the shoulder. πnum_actionsβ the number of actions inactions. yes, it's just the count. yes, you still need it.actionsβ the list of actions to associate with this element. entries in this list can be initialized withAuMakeChangeStateAction,AuMakeSendNotifyAction, andAuMakeNoopAction. may beNULLβ so it's optional, lowkey.
π DESCRIPTION π
AuMakeElementImportClient sets the type of element to AuElementTypeImportClient and initializes the importclient member of element with the remaining arguments. that's it. that's the tea. π
also, AuMakeElementImportClient is implemented as a macro. iconic behavior, honestly. β¨
π SEE ALSO π
the whole friend group, in order:
AuMakeElementAddConstantAuMakeElementBundleAuMakeElementExportClientAuMakeElementExportDeviceAuMakeElementExportBucketAuMakeElementExportMonitorAuMakeElementImportDeviceAuMakeElementImportBucketAuMakeElementImportWaveFormAuMakeElementMultiplyConstantAuMakeElementSum
and also:
audiolibβ Network Audio System C Language Interface
okay that's the whole page, you ate that π go initialize something. mwah π«Ά
this was audiolib - element initialization, version 1.9.4, from the AuMakeElementImportClient(3) era β bye bestie, see you in the next manpage πΈπ¦
π¦ 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