AuReadElement(3)

πŸ“¦ version 1.9.5, in fedora 43, fedora 44

πŸ’– 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 in
  • element β€” the index of the ExportClient element you're pulling data from
  • num_bytes β€” how many bytes of audio data you wanna read, no cap
  • data β€” 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 an ExportClient and an ImportBucket, nothing else β€” then the num_samples fields in the ExportClient and the ImportBucket get ignored. Not "respected", not "hinted at", ignored. Periodt. πŸ’€

😭 ERRORS 😭

  • AuBadFlow
  • AuBadElement

(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