AUSOUNDCREATEBUCKETFROMDATA(3x)

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

πŸ’– AuSoundCreateBucketFromData πŸ’–

okay bestie, so this is a page from the Library Functions Manual β€” the audiolib/soundlib girlies know ✨


🌸 Name 🌸

AuSoundCreateBucketFromData β€” make a bucket and fill it with your audio data, that's literally the whole job πŸŽ€


✨ Synopsis ✨

#include <audio/audiolib.h>
#include <audio/soundlib.h>

AuBucketID AuSoundCreateBucketFromData(server, sound, data, access,
attributes, status)
    AuServer *server;
    Sound sound;
    AuPointer data;
    AuUint32 access;
    AuBucketAttributes **attributes; /* RETURN */
    AuStatus *status; /* RETURN */

so yeah, it hands you back an AuBucketID and you're off πŸ¦‹


🫢 Arguments 🫢

  • server β€” the connection to the audio server. like, your whole line to the server bestie, pls pass it in πŸ’…
  • sound β€” describes the audio data. it's a Sound, and it's telling everyone what the audio actually is.
  • data β€” the actual audio data that's going in the bucket. the goods. the moment. πŸ“
  • access β€” the access restrictions the bucket should have. who's allowed in, who's not, boundaries are iconic πŸ‘‘
  • attributes β€” if this is non-NULL, it returns the attributes of the created bucket. yes bestie, you get the receipts 🌈
  • status β€” if this is non-NULL, it flushes the output buffer and returns the status from the server. also a RETURN value, so keep it somewhere cute πŸ’œ

πŸ¦‹ Description πŸ¦‹

AuSoundCreateBucketFromData creates a bucket, initializing the contents with the audio data from data, and returns the bucket ID β€” or AuNone if there was error. 😭

so like, you bring the data, it brings the bucket, match made in heaven, no cap. and if it flops? you get AuNone. that's the vibe check. periodt.


πŸ’€ Errors πŸ’€

these ones can pop up, bestie, no shade:

  • AuBadValue
  • AuBadLength
  • AuBadAlloc

πŸ‘€ See Also πŸ‘€

  • AuSoundCreateBucketFromFile
  • audiolib β€” Network Audio System C Language Interface

and that's the whole page, mwah πŸ’… this was soundlib, version 1.9.5, page AuSoundCreateBucketFromData(3) β€” go make some buckets, you absolute main character πŸŽ€βœ¨πŸ«Ά

πŸ“¦ where this page comes from