STRUCTURES
typedef struct {
int type;
YEventAudioChange audio;
YEventCycleChange cycle;
YEventDisconnect disconnect;
YEventHost host;
YEventSoundKill kill;
YEventMixer mixer;
YEventSoundPlay play;
YEventSoundObjectAttributes sndobjattributes;
YEventShutdown shutdown;
YEventSync sync;
YEventAudioStats audiostats;
/* New in version 2.14. */
YEventClientMessage clientmessage;
YEventYSHMSound yshmsound;
YEventAudioCDStats audiocdstats;
} YEvent;
The YEvent structure's first member is always a 32 bit signed integer specifying the type. The type value then determines which substructure contains valid values.
For instance if type is set to YDisconnect then the values in the YEventDisconnect disconnect substructure will be set properly.