AUMAKEELEMENTEXPORTBUCKET(3x)

πŸ“¦ version 1.9.5, in fedora 43, fedora 44

✨ AuMakeElementExportBucket β€” the NAME bit ✨

okay bestie, gather round πŸ’– this is AuMakeElementExportBucket(3x) from the audiolib Library Functions Manual, and its whole entire job is: initialize an ExportBucket element. that's it. that's the girl. lowkey iconic for how unbothered she is.

it lives in the AuMakeElem...xportBucket(3) girlies chapter of the manual, and yes the title got truncated by the terminal, she's just that long πŸ’…


🌸 SYNOPSIS 🌸

#include <audio/audiolib.h>

AuMakeElementExportBucket(element, input, bucket, num_samples, offset,
num_actions, actions)
    AuElement *element; /* RETURN */
    unsigned short input;
    AuBucketID bucket;
    AuUint32 num_samples;
    AuInt32 offset;
    int num_actions;
    AuElementAction *actions;

no cap, copy that #include exactly, she's picky πŸŽ€


πŸ¦‹ ARGUMENTS πŸ¦‹

  • element β€” the return girl 🫢 you hand her over and she comes back initialized. (the original literally tags her /* RETURN */, so like, that's the vibe.)
  • input β€” the index of the element that's gonna be supplying the audio data to this element. so basically "who's feeding me" πŸ“
  • bucket β€” the AuBucketID of the bucket we're writing the audio data to. yes, to. she exports. it's in the name, bestie.
  • num_samples β€” how many samples we're writing into that bucket. a number. a AuUint32 one. ⭐
  • offset β€” where in the bucket we start writing. the little "begin here" marker. an AuInt32, so she can be negative, live your truth ✨
  • num_actions β€” how many actions are chillin' in actions.
  • actions β€” the list of actions to associate with this element. and listen, these entries can be initialized with AuMakeChangeStateAction, AuMakeSendNotifyAction, and AuMakeNoopAction. also: may be NULL. so if you're not in an actions mood, she accepts that, we love a flexible queen πŸ™ˆ

πŸ’œ DESCRIPTION πŸ’œ

so what does she actually do? two things. two whole things. main character energy:

  1. she sets the type member of element to AuElementTypeExportBucket πŸ’…
  2. she initializes the exportbucket member of element with the remaining arguments.

and that's the whole ritual. that's the spell.

heads up bestie: AuMakeElementExportBucket is implemented as a macro. so like, no function-call ceremony, no address-of-the-function shenanigans. it's giving preprocessor. iykyk πŸ”₯

🌈 SEE ALSO 🌈

go read her sisters, they're all in the same friend group:

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

and also, obviously:

  • audiolib β€” Network Audio System C Language Interface πŸ‘‘

ngl the whole AuMakeElement... family is a vibe check on your AuElement structs. go off, initialize responsibly πŸ’–

and that's the page, bestie!! this was audiolib β€” element initialization, version 1.9.5, from way back when, and she still slays fr fr. mwah πŸ’‹βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from