YEventSoundPlay(3)

YEventSoundPlay3

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.

Releases

5 releases since Debian 3.0 (Woody); the text changed 2 times.

  1. 3.0
  2. 3.1–5.0
  3. 6.0

From liby-dev 2.14.5-7 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.