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

# YEventSoundPlay(3)

Y sound object play event structures

## NAME

YEventSoundPlay - Y sound object play event structures

## STRUCTURES

typedef struct {

/\* These flag definations need to match those of the server. \*/\
 \#define YPlayValuesFlagYID              (1 \<\< 1)\
 \#define YPlayValuesFlagPosition         (1 \<\< 2)\
 \#define YPlayValuesFlagLength           (1 \<\< 3)\
 \#define YPlayValuesFlagRepeats          (1 \<\< 4)\
 \#define YPlayValuesFlagTotalRepeats     (1 \<\< 5)\
 \#define YPlayValuesFlagVolume           (1 \<\< 6)\
 \#define YPlayValuesFlagSampleRate       (1 \<\< 7)

        unsigned long flags;

        YID yid;

        YDataPosition position;         /\* Current play position in bytes. \*/\
\
         YDataLength length;             /\* Length of audio data in bytes. \*/\
\
         int     repeats,                /\* Number of repeats so far. \*/\
\
                 total\_repeats;          /\* Total number of repeats. \*/

        Coefficient     left\_volume,    /\* Volume from 0.0 to 1.0. \*/\
\
                         right\_volume,\
\
                         back\_left\_volume,\
\
                         back\_right\_volumne;

        int sample\_rate;                /\* Applied sample rate in Hz. \*/

} YEventSoundPlay;

When you receive this event it means that a Y sound object (that belongs to the Y client of the connection that fetched this event) has changed in its values.

## SEE ALSO

[YEvent(3)](/YEvent/3.md) [YEventAudioChange(3)](/YEventAudioChange/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) [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)
