AuReadElement(3)
π AuReadElement(3) π
okay so bestie, welcome to the Library Functions Manual page for AuReadElement β yes that's the whole name, she's serving exactly what she says on the tin π
β¨ NAME β¨
AuReadElement β read data from an ExportClient element in a flow π
π¦ SYNOPSIS π¦
#include <audio/audiolib.h>
void AuReadElement(server, flow, element, num_bytes, data, status)
AuServer *server;
AuFlowID flow;
int element;
AuUint32 num_bytes;
AuPointer data;
AuStatus *status; /* RETURN */
πΈ ARGUMENTS πΈ
serverβ the connection to the audio server, aka your link to the mothership π°οΈflowβ the ID of the flow, like the group chat the element lives inelementβ the index of theExportClientelement you're pulling data fromnum_bytesβ how many bytes of audio data you wanna read, no capdataβ the buffer the audio data gets read into (bring your own container π«)statusβ if it's non-NULL, the output buffer gets flushed and the status from the server comes back to you. The/* RETURN */is literally her telling you it's the return value slot π
π DESCRIPTION π
So here's the tea: AuReadElement transfers audio data from the server over to the client application. It reads num_bytes from the ExportClient that element points at, inside audio flow flow, and drops it right into data. That's it, that's the whole vibe β server data, client buffer, slay β¨
π NOTE π
If the flow is "trivial" β meaning it's only anExportClientand anImportBucket, nothing else β then thenum_samplesfields in theExportClientand theImportBucketget ignored. Not "respected", not "hinted at", ignored. Periodt. π
π ERRORS π
AuBadFlowAuBadElement
(yeah, those two. she's dramatic about it but that's the whole list π)
π«Ά SEE ALSO π«Ά
AuWriteElementβ the other half of the duo, the writer to her reader πaudiolibβ Network Audio System C Language Interface
and that's the page!! go forth and read your audio data, main character π§
mwah π β this was audiolib - read from element, version 1.9.5, and the page itself is AuReadElement(3). ty for coming to my ted talk πβ¨
π¦ 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