AuSoundRecordToBucket(3)
β¨ AuSoundRecordToBucket(3) β¨
okay so bestie, welcome to the Library Functions Manual entry for AuSoundRecordToBucket β yes it's a mouthful, yes it's iconic, no we are not shortening it π
π NAME π
AuSoundRecordToBucket β create a flow to record to a bucket.
like. that's literally the whole job. it makes a flow. the flow records. the recording goes into a bucket. slay.
πΈ SYNOPSIS πΈ
#include <audio/audiolib.h>
#include <audio/soundlib.h>
AuEventHandlerRec *AuSoundRecordToBucket(server, destination, source,
gain, callback, callback_data, mode, flow, volume_mult_elem, status)
AuServer *server;
AuBucketID destination;
AuDeviceID source;
AuFixedPoint gain;
void (*callback) (AuServer *, AuEventHandlerRec *, AuEvent *,
AuPointer);
AuPointer callback_data;
int mode;
AuFlowID *flow; /* RETURN */
int *volume_mult_elem; /* RETURN */
AuStatus *status; /* RETURN */
look at all those parameters. ten of them. it's giving main character energy for real fr fr π«Ά
π¦ ARGUMENTS π¦
serverβ the connection to the audio server. your lil hotline to the server, basically.destinationβ the bucket to record to. this is where the audio ends up, like dropping a voice memo into the group chat.sourceβ the input device to record from. where the sound is coming from, king.gainβ the gain for the input device. turn it up, turn it down, it's a whole vibe.callbackβ the procedure to be called for additional event processing. your little guy that gets pinged when there's more event stuff to handle.callback_dataβ any additional arguments to be passed to the callback. lil care package for your callback πmodeβ the line mode for the input device. currently the following line modes are defined:AuDeviceInputModeNone,AuDeviceInputModeLineIn,AuDeviceInputModeMicrophone. pick your fighter β¨flowβ if non-NULL, returns the flow ID.volume_mult_elemβ according to the comment in the source, not implemented. π that's it. that's the whole description. it's giving "we left a TODO and never came back."statusβ if non-NULL, flush the output buffer and return the status from the server.
π DESCRIPTION π
AuSoundRecordToBucket creates a flow to record from source into destination and returns a pointer to the event handler created or NULL if there was an error.
so like β hand it a source, hand it a destination, and it wires up a whole flow for you and hands back a pointer to the shiny new event handler. if it's not feeling it? you get NULL. no handler. no vibes. π
π ERRORS π
AuBadBucketAuBadDevice
bestie if you see one of these it means your bucket or your device was not the moment. check ur ids.
π SEE ALSO π
AuSoundRecordAuSoundRecordToDataAuSoundRecordToFileAuSoundRecordToFileN
audiolib - Network Audio System C Language Interface
like literally the whole friend group of record functions. go read them too, they ate π₯
and that's the page!! this one came from soundlib, version 1.9.4, and it's the AuSoundRecordToBucket(3) entry π¦π
no cap, thanks for reading bestie, mwah π«Άβ¨π
π¦ 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