AuSoundRecord(3)
π AuSoundRecord(3) π
okay bestie, so this one lives in the Library Functions Manual and it's giving AuSoundRecord β the glow-up function that builds you a whole flow just to record audio to literally any destination you want. no cap. π
β¨ Name β¨
AuSoundRecord β create a flow to record audio to any destination. π
πΈ 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 */
π¦ Arguments π¦
serverβ the connection to the audio server, your lil hotline to the sound gods πsourceβ which input device we're using, the main character of the recording π€gainβ the gain for the input device, so turn it up (or down, respectfully) ποΈnum_samplesβ how many samples you're recording, literally just the count β¨modeβ the line mode for the input device. rn the defined line modes are:AuDeviceInputModeNone,AuDeviceInputModeLineIn,AuDeviceInputModeMicrophoneποΈsound_dataβ the sound information, aka the whole vibe of your audio πflowβ if it's non-NULL, it returns the flow ID πvolume_mult_elemβ ngl bestie, accord to the comment in the source, this one is not implemented πstatusβ if it's non-NULL, it flushes the output buffer and returns the status from the server π‘
π Description π
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 carrying all the necessary info about the audio format plus the data handling function. it's giving organized. it's giving prepared. π«Ά
π Errors π
AuBadDevice.
that's it, that's the whole error list. short king behavior fr fr.
π See Also π
AuSoundRecordToBucketAuSoundRecordToDataAuSoundRecordToFileAuSoundRecordToFileNaudiolibβ Network Audio System C Language Interface
k that's the whole page bestie, go record something iconic π
this was brought to you by soundlib, version 1.9.5 β mwah, take care, and don't forget to flush ur buffers πβ¨
π¦ 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 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