---
name: "YEventAudioChange"
section: "3"
platform: "linux"
package: "liby-dev"
version: "2.14.5-7"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/YEventAudioChange"
---

# YEventAudioChange(3)

Y Audio change event structures

## NAME

YEventAudioChange - Y Audio change event structures

## STRUCTURES

typedef struct {

        Boolean preset;         /\* Is preset if True. \*/

        /\* If preset is True, these members are non-garbage. \*/\
\
         char mode\_name\[YAudioNameMax\];\
\
         /\* If preset is False, these members are non-garbage. \*/\
\
         int sample\_size;         /\* In bits. \*/\
\
         int channels;            /\* Number of channels. \*/\
\
         int sample\_rate;         /\* In Hz. \*/\
\
         int direction;           /\* 0 for play. \*/\
\
         int allow\_fragmenting;   /\* True if fragmenting allowed. \*/\
\
         int num\_fragments;       /\* Number of buffer fragments. \*/\
\
         int fragment\_size\_bytes; /\* In bytes. \*/

} YEventAudioChange;

When you receive this event it means that the Y server has changed its Audio values.

If the preset member is True then it means its changed to a preset audio mode in which case the mode\_name member will be set to the null terminated string specifying the preset Audio mode name.

If the preset member is False then it means the other members specify the new Audio values.

## SEE ALSO

[YEvent(3)](/YEvent/3.md) [YEventServerStats(3)](/YEventServerStats/3.md) [YEventCycleChange(3)](/YEventCycleChange/3.md) [YEventDisconnect(3)](/YEventDisconnect/3.md) [YEventHost(3)](/YEventHost/3.md) [YEventSoundKill(3)](/YEventSoundKill/3.md) [YEventMixer(3)](/YEventMixer/3.md) [YEventSoundPlay(3)](/YEventSoundPlay/3.md) [YEventSoundObjectAttributes(3)](/YEventSoundObjectAttributes/3.md) [YEventShutdown(3)](/YEventShutdown/3.md) [YEventSync(3)](/YEventSync/3.md) [YEventAudioStats(3)](/YEventAudioStats/3.md) [YEventYSHMSound(3)](/YEventYSHMSound/3.md) [YEventAudioCDStats(3)](/YEventAudioCDStats/3.md) [YGetNextEvent(3)](/YGetNextEvent/3.md) [YPutBackEvent(3)](/YPutBackEvent/3.md)
