AUMAKEELEMENTEXPORTBUCKET(3nas)

✨ AuMakeElementExportBucket β€” the "okay bestie let's export this audio to a bucket" init πŸ’–

so like, we're in the 3nas section of the Library Functions Manual, and today's main character is AuMakeElementExportBucket πŸŽ€ she's a little macro that gets an ExportBucket element all set up and ready to go. no cap.


🌸 Name 🌸

AuMakeElementExportBucket β€” initialize an ExportBucket element πŸ¦‹


✨ 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;

like. look at her. seven arguments. she's thriving πŸ’…


🫢 Arguments 🫢

  • element β€” this one's the /* RETURN */ girlie, she hands you back the initialized element. she's the whole point, lowkey.
  • input β€” specifies the index of the element that's supplying the audio data to this element. so like, who's feeding us πŸ“
  • bucket β€” specifies the ID of the bucket we're writing the audio data to. yes bestie, that bucket.
  • num_samples β€” specifies the number of samples to write to the bucket. how many. that's it. that's the number.
  • offset β€” specifies the offset into the bucket to begin writing at. not the start β€” where in the bucket we start. very important distinction, iykyk.
  • num_actions β€” specifies the number of actions in actions. (yes, they're the same name-ish. the audiolib girlies love a symmetry ✨)
  • actions β€” specifies the list of actions to associate with this element. entries in this list can be initialized with AuMakeChangeStateAction, AuMakeSendNotifyAction, and AuMakeNoopAction. May be NULL. 🫢

πŸ’œ Description πŸ’œ

okay so here's the tea, bestie β˜•

AuMakeElementExportBucket sets the type member of element to AuElementTypeExportBucket β€” that's the vibe check right there, she's announcing what she is β€” and then it initializes the exportbucket member of element with the remaining arguments. all of them. every single one. she ate and left no crumbs πŸ”₯

and the iconic part: AuMakeElementExportBucket is implemented as a macro. periodt. πŸ’…


🌈 See Also 🌈

like, if you're obsessed with this one (and you should be), go give her sisters some love too πŸ’–

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

and also:

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

ngl bestie, if you're out here calling this and it's not doing what you want, double check your input index and your bucket ID first. that's where the drama usually lives πŸ™ˆ

okay that's the whole page, mwah πŸ’‹ this was audiolib - element initialization, version 1.9.4, from the AuMakeElementExportBucket(3) page in the 3nas manual β€” thanks for reading, love u, bye πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from