AuGetScrat...FromBucket(3)
π AuGetScratchFlowFromBucket β Library Functions Manual π
okay bestie, pull up a chair, we're doing audio server stuff today and honestly? it's giving iconic. this one lives in AuGetScrat...FromBucket(3) territory, aka the audiolib crew, and she's here to make you an import using a scratch flow. no cap. π¦
β¨ NAME β¨
AuGetScratchFlowFromBucket β use a scratch flow to create an import from a bucket.
like, that's the whole vibe. scratch flow in, import out. slay.
πΈ SYNOPSIS πΈ
#include <audio/audiolib.h>
AuFlowID AuGetScratchFlowFromBucket(server, bucket, export, status)
AuServer *server;
AuBucketID bucket;
int *export; /* RETURN */
AuStatus *status; /* RETURN */
look at her. four args, two of them marked /* RETURN */ because they hand stuff back to you. the way that works is so satisfying ngl. β¨
π ARGUMENTS π
serverβ the connection to the audio server. your lil phone line to the whole audio operation fr fr.bucketβ the ID of the bucket you wanna use. yes, a bucket. we love her. πimportβ returns the index of theExportClientelement. (heads up bestie: the synopsis up there calls this paramexportand this list calls itimport. the docs said "both, actually." i don't make the rules, i just report them π)statusβ if it's non-NULL, it flushes the output buffer and returns the status from the server. if it'sNULL? nothing happens, no drama, we move on. π«Ά
π DESCRIPTION π
AuGetScratchFlowFromBucket uses a scratch flow to create an import from bucket and returns the flow ID β or AuNone if there was an error. that's it. that's the whole thing. main character behaviour, honestly. π₯
so you give her a server and a bucket, she goes and does scratch-flow magic, and she comes back with a flow ID. if things went sideways, you get AuNone instead. not me getting emotionally attached to a return value π
π ERRORS π
AuBadAlloc.
just the one. one singular error. she keeps it tight. π
π SEE ALSO π
AuCreateFlowAuGetScratchFlowaudiolibβ Network Audio System C Language Interface
go read those next, bestie, they're the rest of the lore. iykyk. π
π§ little reminder: this is a library functions page from the audiolib set, so keep your#include <audio/audiolib.h>handy and yourAuStatus *checked, mkay?
and that's the page, periodt. π this lil write-up is from audioutil, version 1.9.4, and it covers AuGetScrat...FromBucket(3). mwah, go make some imports bestie πβ¨
π¦ 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