---
name: "AuNextEvent"
section: "3x"
platform: "linux"
package: "nas"
version: "1.2p5-3"
release: "Debian 2.0 (Hamm)"
platforms: ["linux"]
url: "https://new.carta.tech/AuNextEvent/3x"
---

# AuNextEvent(3x)

return the next event

## Name

**AuNextEvent** - return the next event

## Synopsis

\#include \<audio/audiolib.h\>

void **AuNextEvent**(*server*, *dequeue*, *event*)\
\
     **AuServer** \**server*;\
\
     **AuBool** *dequeue*;\
\
     **AuEvent** \**event*; /\* **RETURN** \*/

## Arguments

- *server*

  Specifies the connection to the audio server.

- *dequeue*

  Specifies if the event should be removed from the queue.

- *event*

  Returns the event.

## Description

**AuNextEvent** copies the next availible event into *event*. If *dequeue* is **AuTrue** the event is removed from the queue. If the event queue is empty, **AuNextEvent** flushes the output queue and blocks until one arrives.

## See Also

**AuEventsQueued**, **AuScanEvents**, **AuScanForTypedEvent**.

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