AuSync(3)

πŸ’– NAME πŸ’–

AuSync(3) is here, bestie! It's from the Library Functions Manual, and it's part of audiolib β€” the Network Audio System C Language Interface vibe. This function does exactly this:

AuSync β€” flush the output buffer and wait for all events and errors to be processed by the server.


✨ SYNOPSIS ✨

#include <audio/audiolib.h>

void AuSync(server, discard)
    AuServer *server;
    AuBool discard;

πŸŽ€ ARGUMENTS πŸŽ€

  • server β€” Specifies the connection to the audio server. Like, the whole link to the audio server. That's the main character connection right there.
  • discard β€” Specifies if events in the input queue are discarded. So it's the switch that says whether the events chillin' in the input queue get tossed.

🌸 DESCRIPTION 🌸

Okay so the description says AySync β€” yes, that's the exact spelling in the original page, no cap β€” and here's the tea: AySync flushes the output buffer, then waits until all pending requests have been received and processed by the server.

If discard is AuTrue, all events on the input queue are discarded. Periodt. πŸ’…

Note: that AySync spelling is straight from the original description. The function you actually call is AuSync. We keep the facts, we just also keep the typo moment. 🫢

πŸ‘‘ SEE ALSO πŸ‘‘

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

Source: audiolib - output buffer Β· Version: 1.9.4 Β· Date: not in this footer, so we're not making one up, bestie. Stay synced, slay, and flush responsibly. πŸ’–βœ¨

πŸ“¦ where this page comes from