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 in actions. count 'em, bestie.
  • actions β€” the list of actions to attach to this element. the entries in this list can be initialized with AuMakeChangeStateAction, AuMakeSendNotifyAction, and AuMakeNoopAction. also she may be NULL β€” 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:

  • AuMakeElementAddConstant
  • AuMakeElementBundle
  • AuMakeElementExportBucket
  • AuMakeElementExportClient
  • AuMakeElementExportDevice
  • AuMakeElementExportMonitor
  • AuMakeElementImportClient
  • AuMakeElementImportDevice
  • AuMakeElementImportWaveForm
  • AuMakeElementMultiplyConstant
  • AuMakeElementSum

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