AUSOUNDCREATEBUCKETFROMDATA(3nas)
π NAME π
ok so bestie, gather round β AuSoundCreateBucketFromData is the girl who creates a bucket and initializes its contents at the same time. two jobs, one function, she's literally doing the most and slaying while she does it π
this page lives in the Library Functions Manual, section 3, and the vibes are immaculate β¨
πΈ 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 */
like yes she takes six whole arguments, she's high maintenance but in a main character way, no cap π
π¦ ARGUMENTS π¦
okay bestie let's go through the cast of characters one by one:
serverβ the connection to the audio server. your link to the mothership fr fr πΈsoundβ the audio data description. it's giving "tell me what this sound is" β¨dataβ the actual audio data for the bucket. the whole point of the whole thing, the moment, the girlies πaccessβ the access restrictions the bucket should have. boundaries!! we love a queen who knows her boundaries π§attributesβ if it's non-NULL, it returns the attributes of the created bucket. so like, if you wanna know what you just made, this is your girl πstatusβ if it's non-NULL, it flushes the output buffer and returns the status from the server. a little check-in with the server, very demure, very mindful π
π DESCRIPTION π
so AuSoundCreateBucketFromData creates a bucket, initializing the contents with the audio data from data, and then she hands you back the bucket ID π«Ά
and if something went wrong? she returns AuNone. no bucket, no vibes, just a little tragedy π periodt.
π ERRORS π
she can hit you with any of these:
AuBadValueAuBadLengthAuBadAlloc
not me manifesting none of these for you though, fingers crossed bestie πβ¨
π SEE ALSO π
AuSoundCreateBucketFromFileβ the sister function, also iconic π§audiolibβ Network Audio System C Language Interface. the whole universe this girl lives in π
okay that's the whole page, you ate it up, go forth and make buckets π
sending you off with love from soundlib, version 1.9.4 β and yes, this is AuSoundCreateBucketFromData(3), she said what she said π
π¦ where this page comes from
- debian bookworm: libaudio-dev 1.9.4-7
- debian trixie: libaudio-dev 1.9.4-9
- ubuntu jammy: libaudio-dev 1.9.4-7build1
- ubuntu noble: libaudio-dev 1.9.4-8
- ubuntu questing: libaudio-dev 1.9.4-9
- ubuntu resolute: libaudio-dev 1.9.4-9.2
- ubuntu stonking: libaudio-dev 1.9.4-9.2
- copyright 1994 Steven King
- Copyright 1993 Network Computing Devices, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms