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

# AuSetElementStates(3nas)

set the state of elements in a flow

## Name

**AuSetElementStates** - set the state of elements in a flow

## Synopsis

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

void **AuSetElementStates**(*server*, *num\_states*, *states*, *status*)\
\
     **AuServer** \**server*;\
\
     int *num\_states*;\
\
     **AuElementStates** \**states*;\
\
     **AuStatus** \**status*; /\* **RETURN** \*/

## Arguments

- *server*

  Specifies the connection to the audio server.

- *num\_states*

  Specifies the number of element states.

- *states*

  Specifies the list of element states to use.

- *status*

  If non-NULL, flush the output buffer and return the status from the server.

## Description

**AuSetElementStates** changes the states of those elements in those flows specified in *states*.

## NoteS

Attempting to set the state of non-component elements (AddConstant, Bundle, ExportMonitor, MultiplyConstant, and Sum) will result in an error.

## Errors

**AuBadFlow**, **AuBadElement**, **AuBadAlloc**, **AuBadLength**.

## See Also

**AuGetElementStates**.

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