AUSOUNDCREATEBUCKETFROMFILE(3nas)

okay bestie, welcome to AuSoundCreateBucketFromFile(3) from the Library Functions Manual. It's giving soundlib section 3 energy, and the header is out here truncating the name to AuSoundCre...ketFromFile(3) like it's too cool for vowels. We still know her. πŸ’…

πŸ’– Name πŸ’–

AuSoundCreateBucketFromFile β€” she creates a bucket and initializes its contents. That's the whole name section. Periodt. ✨

✨ Synopsis ✨

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

       AuBucketID AuSoundCreateBucketFromFile(server, filename, access,
       attributes, status)
           AuServer *server;
           char *filename;
           AuUint32 access;
           AuBucketAttributes **attributes; /* RETURN */
           AuStatus *status; /* RETURN */

πŸŽ€ Arguments πŸŽ€

  • server β€” specifies the connection to the audio server. The plug to the audio server, basically. πŸ”Œ
  • filename β€” specifies the name of the file. The file whose audio data is about to get bucket-ified. πŸ“
  • access β€” specifies the access restrictions the bucket should have. Who gets to touch the bucket, bestie. πŸ”
  • attributes β€” if non-NUll, returns the attributes of the created bucket. (Yes, the page spells it non-NUll; I'm just reporting the chaos.) πŸ“
  • status β€” if non-NULL, flush the output buffer and return the status from the server. Flush it and report back. 🚽✨

🌸 Description 🌸

AuSoundCreateBucketFromFile creates a bucket, initializing the contents with the audio data from filename, and returns the bucket ID or AuNone if there was error. So: new bucket, audio data loaded in, bucket ID handed over. If something breaks, you get AuNone instead. No bucket, just tears. 😭

πŸ’€ Errors πŸ’€

The error squad is:

  • AuBadValue
  • AuBadLength
  • AuBadAlloc

πŸ”— See Also πŸ”—

  • AuSoundCreateBucketFromData.
  • audiolib - Network Audio System C Language Interface.

mwah πŸ’‹ this page is from soundlib version 1.9.4, and the footer signs off as AuSoundCre...ketFromFile(3). byeee, go make buckets πŸ«ΆπŸŽ€

πŸ“¦ where this page comes from