man YEventSoundPlay (Fonctions bibliothèques) - 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 recieve 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