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

# AuMakeChangeStateAction(3x)

initialize an action

## Name

**AuMakeChangeStateAction** - initialize an action

## Synopsis

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

**AuMakeChangeStateAction**(*action*, *trigger\_state*, *trigger\_prev\_state*, *trigger\_reason*, *flow*, *element\_num*, *new\_state*)\
\
     **AuElementAction** *action*; /\* **RETURN** \*/\
\
     unsigned char *trigger\_state*;\
\
     unsigned char *trigger\_prev\_state*;\
\
     unsigned char *trigger\_reason*;\
\
     **AuFlowID** *flow*;\
\
     unsigned char *element\_num*;\
\
     unsigned char *new\_state*;

## Arguments

- *action*

  Returns the initialized action.

- *trigger\_state*

  Specifies the state that triggers the action. This must be one of these constants: **AuStateStop**, **AuStateStart**, **AuStatePause**, or **AuStateAny**.

- *trigger\_prev\_state*

  Specifies the previous state for the trigger. This must be one of these constants: **AuStateStop**, **AuStateStart**, **AuStatePause**, or **AuStateAny**.

- *trigger\_reason*

  Specifies the reason for the action. This must be one of these constants: **AuReasonUser**, **AuReasonUnderrun**, **AuReasonOverrun**, **AuReasonEOF**, **AuReasonWatermark**, **AuReasonHardware**, or **AuReasonAny**.

- *flow*

  Specifies the ID of the flow to affect.

- *element\_num*

  Specifies the index of the element to affect.

- *new\_state*

  Specifies the new state for the flow. This must be one of thses constants: **AuStateStop**, **AuStateStart**, or **AuStatePause**.

## Description

**AuMakeChangeStateAction** sets the **action** field of *action* to **AuElementActionChangeState** and initializes the other fields with the remaining arguments.

**AuMakeChangeStateAction** is implemented as a macro.

## See Also

**AuMakeSendNotifyAction**, **AuMakeNoopAction**.

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