AuBucketAttributes(3)
β¨ AuBucketAttributes β¨
okay bestie, welcome to the Library Functions Manual entry for AuBucketAttributes(3) π this is the lil struct that holds all the deets about where your audio data lives on the server. no cap, it's giving "backstage pass to the bucket."
πΈ Name πΈ
AuBucketAttributes β bucket attributes structure πͺ£β¨
π Structures π
first things first, pull in the header:
#include <audio/audiolib.h>
and here's the struct, bestie:
typedef struct _AuBucketAttributes
{
. . .
}AuBucketAttributes;
like, the insides are a mystery on purpose (iykyk) π
π Members π
ok so HUGE disclaimer: do not dereference the members of the AuBucketAttributes structure directly. do not. don't do it. use the access macros instead, periodt. π
ββοΈ
throughout all of this, ba is a pointer to a AuBucketAttributes structure. she's the main character here π
AuBucketValueMask(ba)β grabs theAuMaskvalue that tells you which attributes are actually present. it's a bitwise inclusive OR of these constants:AuCompCommonIDMask,AuCompCommonKindMask,AuCompCommonUseMask,AuCompCommonFormatMask,AuCompCommonNumTracksMask,AuCompCommonAccessMask,AuCompCommonDescriptionMask,AuCompBucketSampleRateMask, andAuCompBucketNumSamplesMask. literally all of them, what a lineup π₯AuBucketChangableMask(ba)β grabs theAuMaskvalue that tells you which of the attributes can be changed. also a bitwise inclusive OR of these constants:AuCompCommonIDMask,AuCompCommonKindMask,AuCompCommonUseMask,AuCompCommonFormatMask,AuCompCommonNumTracksMask,AuCompCommonAccessMask,AuCompCommonDescriptionMask,AuCompBucketSampleRateMask, andAuCompBucketNumSamplesMask. yes it's the same list as above, i said what i said πAuBucketIdentifier(ba)β grabs theAuBucketIDID of the bucket. her government name πͺͺAuBucketKind(ba)β grabs theintvalue telling you the kind of component. and babes, buckets will always beAuComponentKindBucket. no identity crisis here π¦AuBucketUse(ba)β grabs theAuMaskvalue telling you what uses of the bucket are permitted. bitwise inclusive OR of these constants:AuComponentUseImportMaskandAuComponentUseExportMask. import, export, that's the whole vibe π¦AuBucketFormat(ba)β grabs theintvalue telling you the audio data format the bucket uses. rn the following formats are defined:AuFormatULAW8,AuFormatLinearUnsigned8,AuFormatLinearSigned8,AuFormatLinearSigned16MSB,AuFormatLinearUnsigned16MSB,AuFormatLinearSigned16LSB, andAuFormatLinearUnsigned16LSB. pick your fighter βAuBucketNumTracks(ba)β grabs theintvalue telling you how many tracks the bucket supports. multitrack queen πAuBucketAccess(ba)β grabs theAuMaskvalue telling you what kinds of access the bucket allows. bitwise inclusive OR of these constants:AuAccessImportMask,AuAccessExportMask,AuAccessDestroyMask, andAuAccessListMask. she has boundaries, respect them πAuBucketDescription(ba)β grabs theAuStringstructure holding a textual description of the bucket. her bio, basically πAuBucketSampleRate(ba)β grabs theunsigned intvalue telling you the sample rate of the bucket. the tempo of it all π΅AuBucketNumSamples(ba)β grabs theAuUint32value telling you how many samples the bucket contains. so many. count them π
π Description π
the AuBucketAttributes structure describes the server-local storage of audio data. that's it, that's the whole job β she's the little info card that says where the audio actually lives on the server π β¨
π See Also π
AuGetBucketAttributes,AuListBuckets.audiolibβ Network Audio System C Language Interface π«Ά
and that's the tea, bestie π this was audiolib's bucket attributes page, version 1.9.5, from the Library Functions Manual β go slay your audio code, mwah πβ¨
π¦ where this page comes from
- fedora 43: nas-devel 1.9.5-11.fc41 Β· MIT
- fedora 43: nas-devel 1.9.5-11.fc41 Β· MIT
- fedora 43: nas-devel 1.9.5-14.fc43 Β· MIT
- fedora 43: nas-devel 1.9.5-14.fc43 Β· MIT
- fedora 44: nas-devel 1.9.5-15.fc44 Β· MIT
- fedora 44: nas-devel 1.9.5-15.fc44 Β· MIT
- 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