AUMAKEELEMENTIMPORTBUCKET(3nas)
π NAME π
AuMakeElementImportBucket β bestie, this is the one that initializes an ImportBucket element. that's it, that's the job β¨
π SYNOPSIS π
#include <audio/audiolib.h>
AuMakeElementImportBucket(element, sample_rate, bucket, num_samples,
offset, num_actions, actions)
AuElement *element; /* RETURN */
unsigned short sample_rate;
AuBucketID bucket;
AuUint32 num_samples;
AuInt32 offset;
int num_actions;
AuElementAction *actions;
πΈ ARGUMENTS πΈ
elementβ this one's the RETURN girlie π she comes back holding the freshly initialized element. so like, you hand her an empty vessel and she fills it. iconic behavior honestly.sample_rateβ says what the sample rate of the audio data is. the vibe of the waveform, if you will π§bucketβ the ID of the bucket we're reading the audio data from. it's giving "source material" πͺ£β¨num_samplesβ how many samples to read out of the bucket. heads up tho: this gets straight up ignored for"trivial"flows π like, she doesn't even look at it. no cap.offsetβ where in the bucket to start reading from. your lil bookmark πnum_actionsβ how many actions are inactions. count 'em, bestie.actionsβ the list of actions to attach to this element. the entries in this list can be initialized withAuMakeChangeStateAction,AuMakeSendNotifyAction, andAuMakeNoopAction. also she may beNULLβ she's allowed to show up with nothing, and that's valid π«Ά
π¦ DESCRIPTION π¦
okay so here's the tea β
AuMakeElementImportBucket sets the type member of element to AuElementTypeImportBucket, and then initializes the importbucket member of element with all the remaining arguments. set the type, fill in the rest, done. ate and left no crumbs π
and the plot twist: AuMakeElementImportBucket is implemented as a macro. so it's not even a real function call, she's a macro. iykyk πβ¨
π SEE ALSO π
go read these next, they're all in the same friend group:
AuMakeElementAddConstantAuMakeElementBundleAuMakeElementExportBucketAuMakeElementExportClientAuMakeElementExportDeviceAuMakeElementExportMonitorAuMakeElementImportClientAuMakeElementImportDeviceAuMakeElementImportWaveFormAuMakeElementMultiplyConstantAuMakeElementSum
and of course:
audiolibβ Network Audio System C Language Interface π
k bye bestie, go initialize some elements πβ¨ this page is from the audiolib - element initialization set, version 1.9.4, and it lives in section 3 under AuMakeElem...mportBucket(3). mwah π
π¦ 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