AuSoundRecord(3)
β¨ AuSoundRecord(3) β¨
okay bestie, buckle up π this one lives in the Library Functions Manual and it's literally called AuSoundRecord β she's a soundlib girlie and she's about to build you a whole flow just to record audio. no cap.
π NAME π
AuSoundRecord β create a flow to record audio to any destination.
likeβ¦ any destination. she's not picky. she's versatile. π
πΈ SYNOPSIS πΈ
#include <audio/audiolib.h>
#include <audio/soundlib.h>
AuEventHandlerRec *AuSoundRecord(server, source, gain, num_samples,
mode, sound_data, flow, volume_mult_elem, status)
AuServer *server;
AuDeviceID source;
AuFixedPoint gain;
AuUint32 num_samples;
int mode;
AuSoundDataPtr sound_data;
AuFlowID *flow; /* RETURN */
int *volume_mult_elem; /* RETURN */
AuStatus *status; /* RETURN */
look at her. nine arguments. she's high maintenance and she earned it. π
π¦ ARGUMENTS π¦
serverβ the connection to the audio server. your link to the mothership, basically. πsourceβ the input device you wanna use. pick your fave. π€gainβ the gain for the input device. turn it up (or down, we don't judge). πnum_samplesβ how many samples you're recording. the exact count, bestie, not vibes-based. π’modeβ the line mode for the input device. rn the defined line modes are:AuDeviceInputModeNone,AuDeviceInputModeLineIn,AuDeviceInputModeMicrophone. pick one, they're all iconic in their own way. π§sound_dataβ the sound information. the whole situation. πflowβ if it's non-NULL, returns the flow ID. ooh, receipts. π§Ύvolume_mult_elemβ according to the comment in the source, not implemented. yeah. she's listed but she's not showing up to the party. π (still a real argument tho, don't @ me)statusβ if it's non-NULL, it flushes the output buffer and returns the status from the server. so you get the tea straight from the server itself. β
π DESCRIPTION π
so AuSoundRecord creates a flow to record audio from source to any destination, and it returns a pointer to the event handler it created β or NULL if there was an error. π
the sound_data structure is the one holding all the necessary info about the audio format and the data handling function. she's the brains of the operation, fr fr. π§ β¨
π₯ ERRORS π₯
AuBadDevice.
that's it. that's the list. one error, and she's dramatic about it. π
π SEE ALSO π
AuSoundRecordToBucketAuSoundRecordToDataAuSoundRecordToFileAuSoundRecordToFileNaudiolibβ Network Audio System C Language Interface
the whole friend group π«Ά go say hi.
okay that's the whole page, you ate that. π this was soundlib, version 1.9.4, and honestly? iconic behavior. go record something beautiful, bestie β main character energy only β¨ππ¦
π¦ 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 1995 Yoav Eilat
- 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