---
name: "AuSync"
section: "3nas"
platform: "linux"
package: "libaudio-dev"
version: "1.9.4-9"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/AuSync"
---

# AuSync(3nas)

flush the output buffer and wait for all events and errors to be processed by the server

## Name

**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.

- *discard*

  Specifies if events in the input queue are discarded.

## Description

**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.

## See Also

**AuFlush**.

audiolib - **Network Audio System** C Language Interface
