YEventSoundObjectAttributes(3) Y sound object attributes event structures


typedef struct {

#define SndObjTypeNone 0
#define SndObjTypeDSP 1
#define SndObjTypeMIDI 2

        int format;

        int sample_size;

        int channels;

        int sample_rate;

        YDataLength length;

        char path[YPathMax];

} YEventSoundObjectAttributes;

Contains the attributes of a sound object on file (not a sound object that's loaded and playing).

Note that member length specifies the audio data length in bytes (not the actual length of the file). If the format is SndObjTypeMIDI then sample_size, channels, sample_rate, and length will all be 0.