AuSoundRecordToData(3)
π NAME π
AuSoundRecordToData β bestie, this one literally spins up a flow that records audio straight into memory. No files, no buckets, just vibes and RAM. β¨
π¦ SYNOPSIS π¦
#include <audio/audiolib.h>
#include <audio/soundlib.h>
AuEventHandlerRec *AuSoundRecordToData(server, sound, data, source,
gain, callback, callback_data, line_mode, flow, volume_mult_elem,
status)
AuServer *server;
Sound sound;
AuPointer data;
AuDeviceID source;
AuFixedPoint gain;
void (*callback) (AuServer *, AuEventHandlerRec *, AuEvent *,
AuPointer);
AuPointer callback_data;
int line mode;
AuFlowID *flow;
int *volume_mult_elem;
AuStatus *status;
ok yes, int line mode; is really what it says up there, we're just reading it back to you exactly as it is, don't come for me π
π ARGUMENTS π
serverβ the connection to the audio server. Your whole link-up to the sound system, essentially. π«Άsoundβ describes the audio data. It's the description of what you're working with.dataβ where the data gets written. This is the memory destination, the whole point of the function, the main character. πSourceβ the input device you're recording from. (Yes, capital S in the original, we respect the canon.)gainβ the gain for that input device. Crank it or don't. πΈcallbackβ the procedure that gets called for any additional event processing.callback_dataβ any extra arguments you wanna pass along tocallback. Little gift bag for your function. πline_modeβ the line mode for the input device. Right now the defined line modes are:AuDeviceInputModeNone,AuDeviceInputModeLineIn, andAuDeviceInputModeMicrophone.flowβ if it's non-NULL, it returns the flow ID. π¦volume_mult_elemβ according to the comment in the source, not implemented. That's it. That's the whole story. πstatusβ if it's non-NULL, it flushes the output buffer and returns the status from the server.
β¨ DESCRIPTION β¨
AuSoundRecordToData creates a flow to record from source to data, and it returns the event handler it created β or NULL if there was an error. That's the deal. π
π ERRORS π
AuBadDevice.
π₯ SEE ALSO π₯
AuSoundRecordAuSoundRecordToBucketAuSoundRecordToFileAuSoundRecordToFileNaudiolibβ Network Audio System C Language Interface
and that's the whole page, bestie π«Ά this one came out of soundlib, version 1.9.4, no cap. go record something iconic πβ¨π
π¦ 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