AuGetElements(3)

πŸ’– AuGetElements(3) πŸ’–

okay bestie, welcome to the Library Functions Manual corner of the group chat β€” this one's all about pulling the elements out of a flow, and it's genuinely so useful, iykyk. ✨


🌸 NAME 🌸

AuGetElements β€” get the elements in a flow πŸ¦‹


✨ SYNOPSIS ✨

#include <audio/audiolib.h>

AuElement *AuGetElements(server, flow, clocked, num_elements, status)
    AuServer *server;
    AuFlowID flow;
    AuBool *clocked; /* RETURN */
    int *num_elements; /* RETURN */
    AuStatus *status; /* RETURN */

πŸŽ€ ARGUMENTS πŸŽ€

  • server β€” the connection to the audio server. like, your whole link to the server bestie, you gotta hand it over. πŸ’…
  • flow β€” the ID of the flow you wanna grab elements from. that's the one, no cap.
  • clocked β€” returns a boolean value that tells you if the flow is clocked. RETURN value, so she writes back to you. ⭐
  • num_elements β€” returns the number of elements. RETURN energy again, she's giving you the count. πŸ”’
  • status β€” if it's non-NULL, it flushes the output buffer and returns the status straight from the server. RETURN girly is reporting back. πŸ“¬

🌈 DESCRIPTION 🌈

so here's the tea: AuGetElements returns the list of elements that make up flow β€” or NULL, with num_elements set to 0, if there was an error. 😭 (yes, on an error you get the NULL and the zero, both, together, that's the deal.)

and when you're done with that list? use AuFreeElements to free it when it's nolonger needed. don't be the person who leaks, bestie, that's not the vibe. 🫢


πŸ’€ ERRORS πŸ’€

  • AuBadFlow. that's the one. that's the whole list. πŸ™ˆ

πŸ‘‘ SEE ALSO πŸ‘‘

  • AuSetElements.
  • audiolib β€” Network Audio System C Language Interface

mwah πŸ’‹ that's the page, and the sign-off goes out to the source audiolib, version 1.9.4, filed under the footer vibe "audiolib - flow elements" β€” periodt. πŸŽ€βœ¨

πŸ“¦ where this page comes from