AuCreateBucket(3)
π AuCreateBucket β create a bucket π
okay so bestie, we're in AuCreateBucket(3) territory, part of the Library Functions Manual for audiolib (the Network Audio System C Language Interface, if you're new here, hi, welcome, slay). Buckets are literally the whole vibe of this page and we're about to make one. no cap.
β¨ SYNOPSIS β¨
#include <audio/audiolib.h>
AuBucketID AuCreateBucket(server, format, tracks, access, sample_rate,
nsamples, description, status)
AuServer *server;
AuUint32 format;
AuUint32 tracks;
AuUint32 access;
AuUint32 sample_rate;
AuUint32 num_samples;
AuString *description;
AuStatus *status; /* RETURN */
like, she's giving function signature. look at her. π
πΈ ARGUMENTS πΈ
serverβ the connection to the audio server. your little link to the mothership, basically.formatβ the data format of the audio data. currently these formats are defined:AuFormatULAW8,AuFormatLinearUnsigned8,AuFormatLinearSigned8,AuFormatLinearSigned16MSB,AuFormatLinearUnsigned16MSB,AuFormatSignedLinear16LSB, andAuFormatLinearUnsigned16LSB. pick your fighter πtracksβ how many tracks of audio data. yes, plural tracks. multitrack era. π₯accessβ the types of operations permitted on this bucket. this must be a bitwise inclusive OR of zero or more of these constants:AuAccessImportMask,AuAccessExportMask,AuAccessDestroyMask, andAuAccessListMask. it's giving permissions, it's giving boundaries, we love a secure queen π«Άsample_rateβ the sample rate of the audio data.num_samplesβ how many samples the bucket is gonna contain.descriptionβ a textual description of the bucket. this may beNULL(so if you're not feeling chatty, that's valid, no pressure bestie π).statusβ if non-NULL, flush the output buffer and return the status from the server. she reports back. iconic.
π« DESCRIPTION π«
AuCreateBucket creates a bucket with the specified attributes, and returns the bucket ID, or AuNone if there was an error. so like, you either get your bucket ID or you get absolutely nothing, and honestly? relatable.
heads up: the initial contents of the bucket are undefined. do not assume, do not trust, do not look at them directly. it's a mystery bucket. π
π ERRORS π
the possible errors are:
AuBadValueAuBadLengthAuBadAlloc
she can be a little dramatic. it's fine.
π¦ SEE ALSO π¦
AuDestroyBucketβ the breakup arc πAuSetBucketAttributesβ glow-up arc β¨AuListBucketsβ inventory era πAuFreeBucketAttributesβ letting go, very healing π§
and of course: audiolib β Network Audio System C Language Interface. the whole family.
friendly reminder: every option, every constant, every NULL check is here on purpose. do not skip the boring parts, the boring parts are load-bearing. periodt.
okay that's the page, mwah π this was audiolib β bucket existence, version 1.9.5, and if you read all the way to the bottom you are genuinely my favorite person. go make a bucket, bestie, you got this ππ¦π
π¦ 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