AuBucketAttributes(3)
π AuBucketAttributes β bucket attributes structure β¨
okay bestie, so this is AuBucketAttributes(3) from the audiolib library functions manual and it's literally the blueprint for how a bucket of audio data describes itself. it's giving β¨structuralβ¨, it's giving πorganizedπ, and you're gonna eat it up.
πΈ STRUCTURES πΈ
first things first, the glow-up itself. you pull it in like this:
#include <audio/audiolib.h>
typedef struct _AuBucketAttributes
{
. . .
}AuBucketAttributes;
that's the whole shape of her. the ... is doing a lot of heavy lifting but that's the vibe. π«Ά
π¦ MEMBERS π¦
β οΈ DO NOT dereference the members of the AuBucketAttributes structure directly. like, at all. bestie, I'm so serious. use the access macros instead. that's what they're there for. periodt. π
throughout all of this, ba is a pointer to a AuBucketAttributes structure. keep that in your notes. π
AuBucketValueMask(ba)β accesses theAuMaskvalue that tells you which attributes are present. it's a bitwise inclusive OR of these constants:AuCompCommonIDMask,AuCompCommonKindMask,AuCompCommonUseMask,AuCompCommonFormatMask,AuCompCommonNumTracksMask,AuCompCommonAccessMask,AuCompCommonDescriptionMask,AuCompBucketSampleRateMask, andAuCompBucketNumSamplesMask. yes, all of them. slay. π₯AuBucketChangableMask(ba)β accesses theAuMaskvalue that says which of the attributes can be changed. also a bitwise inclusive OR of:AuCompCommonIDMask,AuCompCommonKindMask,AuCompCommonUseMask,AuCompCommonFormatMask,AuCompCommonNumTracksMask,AuCompCommonAccessMask,AuCompCommonDescriptionMask,AuCompBucketSampleRateMask, andAuCompBucketNumSamplesMask. (yes it's the same list as above, no that's not a typo, that's just how she is π)AuBucketIdentifier(ba)β accesses theAuBucketIDID of the bucket. her literal name tag. π·οΈAuBucketKind(ba)β accesses theintvalue saying what kind of component this is. spoiler alert: buckets will always beAuComponentKindBucket. no identity crisis here. πAuBucketUse(ba)β accesses theAuMaskvalue saying what uses of the bucket are permitted. bitwise inclusive OR of:AuComponentUseImportMaskandAuComponentUseExportMask. in and out, that's the energy. πAuBucketFormat(ba)β accesses theintvalue saying what audio data format the bucket uses. currently the following formats are defined:AuFormatULAW8,AuFormatLinearUnsigned8,AuFormatLinearSigned8,AuFormatLinearSigned16MSB,AuFormatLinearUnsigned16MSB,AuFormatLinearSigned16LSB, andAuFormatLinearUnsigned16LSB. pick your fighter. βAuBucketNumTracks(ba)β accesses theintvalue saying how many tracks the bucket supports. multitasking queen. π§AuBucketAccess(ba)β accesses theAuMaskvalue saying what kinds of access the bucket allows. bitwise inclusive OR of:AuAccessImportMask,AuAccessExportMask,AuAccessDestroyMask, andAuAccessListMask. πͺAuBucketDescription(ba)β accesses theAuStringstructure holding a textual description of the bucket. her bio, basically. πAuBucketSampleRate(ba)β accesses theunsigned intvalue saying the sample rate of the bucket. πAuBucketNumSamples(ba)β accesses theAuUint32value saying how many samples the bucket contains. π’
π§ DESCRIPTION π§
so like, the AuBucketAttributes structure describes the server-local storage of audio data. that's the whole gig. that's what she does. main character energy, no notes. π
π SEE ALSO π
AuGetBucketAttributesAuListBucketsaudiolibβ Network Audio System C Language Interface
and that's the whole page, bestie!! go forth and never dereference those members directly, iykyk πβ¨π
this has been audiolib - bucket attributes, version 1.9.4, dated AuBucketAttributes(3) β mwah, take care of her π«ΆπΈ
π¦ 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