AuListBuckets(3)
π AuListBuckets β list buckets, bestie π
okay so this is a page from the audiolib manual (that's the Library Functions Manual, she's fancy), and today we're learning about AuListBuckets. yes queen, we're listing buckets. let's go π
β¨ Name β¨
AuListBuckets β list buckets. that's it, that's the whole vibe π
β¨ Synopsis β¨
#include <audio/audiolib.h>
AuBucketAttributes *AuListBuckets(server, valuemask, attributes,
nbuckets, status)
AuServer *server;
AuMask valuemask;
AuBucketAttributes *attributes;
int *nbuckets; /* RETURN */
AuStatus *status; /* RETURN */
so she takes five things and she gives you back a whole list of buckets. main character energy fr fr π
β¨ Arguments β¨
serverβ the connection to the audio server. like, your link to the mothership, your group chat with the server, your whole situationship with the audio daemon π«Άvaluemaskβ this tells everyone which bucket attributes are actually defined inattributes. it has to be a bitwise inclusive OR of zero or more of these constants, and yes bestie you have to use their exact government names:AuCompCommonIDMaskAuCompCommonKindMaskAuCompCommonUseMaskAuCommonFormatMaskAuCommonNumTracksMaskAuCommonAccessMaskAuCommonDescriptionMaskAuCompBucketSampleRateMaskAuCompBucketNumSamplesMask
okay important: if valuemask is zero, the attributes get completely ignored and are not referenced. like, she doesn't even look at them. they're in her peripheral vision and she's choosing peace π
attributesβ the struct where the values are being pulled from (the onesvaluemasktold us about). it's giving source material πnbucketsβ RETURN. she fills this in with the number of buckets in the list she hands back. a little receipt, as a treat π§Ύstatusβ RETURN. if it's non-NULL, she flushes the output buffer and returns the status from the server. so she's like, "one sec, lemme make sure the server actually said something" β¨
β¨ Description β¨
AuListBuckets returns a list of buckets whose attributes match the values in attributes that you specified with valuemask. iconic. we love a filtered list π₯
but listen β if there was an error, she returns NULL and sets nbuckets to 0. so if you get nothing, it's not that she's ghosting you, it's that something went wrong π
when you're done with the list, use AuFreeBucketAttributes to free it. free your girl!! she's not gonna clean up after herself, that's on you bestie π
β¨ Errors β¨
AuBadLengthβ she said "the length is not length-ing" π
β¨ See Also β¨
AuGetBucketAttributesaudiolibβ Network Audio System C Language Interface
okay that's the whole page!! go forth and list your buckets, you absolute legend πβ
sign-off time: this was from the audiolib bucket attributes manual, version 1.9.4, dated all the way back in AuListBuckets(3) times. mwah π no cap, you understood all of that. periodt. π¦π
π¦ 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