AuSoundRecordToData(3)
π AuSoundRecordToData β bestie, we're recording STRAIGHT INTO MEMORY π
okay so this one lives in the soundlib manual, section 3 (library functions, the fun ones). It's giving "I make a whole flow just so your audio lands in RAM." No cap.
β¨ NAME β¨
AuSoundRecordToData β create a flow to record to memory.
Like. The whole personality? A flow. To memory. That's it, that's the job. π
π¦ 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;
she returns an AuEventHandlerRec * btw. main character return type fr fr. π
πΈ ARGUMENTS πΈ
serverβ the connection to the audio server. your little link to the mothership. πsoundβ the description if the audio data. (yes, "if", that's what the page says, i'm not touching it π). it's describing the audio data, bestie.dataβ where to write the data. the destination. the moment. β¨Sourceβ the input device you're recording from. (capital S on the page, we respect it π )gainβ the gain for the input device. turn it up, turn it down, your call.callbackβ the procedure to be called for additional event processing. like, "hey bestie, something happened, handle it." πcallback_dataβ any additional arguments to be passed tocallback. lil gift basket for your callback. πline_modeβ the line mode for the input device. currently the following line modes are defined:AuDeviceInputModeNone,AuDeviceInputModeLineIn,AuDeviceInputModeMicrophone. pick your vibe: nothing, line-in, or mic. π€flowβ if non-NULL, returns the flow ID. she'll hand you the receipts. π§Ύvolume_mult_elemβ accord to the comment in the source, not implemented. π that's it. that's the whole lore. it is NOT implemented. we do not know more than that and we will not pretend to.statusβ if non-NULL, flush the output buffer and return the status from the server. so if you wanna know how it went, pass astatusand she'll spill. π
π DESCRIPTION π
AuSoundRecordToData creates a flow to record from source to data and returns the event handler created, or NULL if there was an error.
so: flow = made, handler = returned, and if it all goes sideways you get NULL. that's the tea. π
π ERRORS π
AuBadDevice.
yep. that's the list. one (1) error. iconic honestly.
π«Ά SEE ALSO π«Ά
AuSoundRecordAuSoundRecordToBucketAuSoundRecordToFile.AuSoundRecordToFileN.audiolibβ Network Audio System C Language Interface
go read those too, the whole friend group is valid. π
mwah π this page came to you from soundlib, version 1.9.5, and it's the AuSoundRecordToData(3) page, dated right there in the footer. love that for us. now go record something into memory, bestie. πβ¨
π¦ 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 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