Poster of Linux kernelThe best gift for a Linux geek
YEventSoundObjectAttributes

YEventSoundObjectAttributes

Section: Y Version 2 (3) Updated: Release 14
Local index Up
 

NAME

YEventSoundObjectAttributes - Y sound object attributes event structures  

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.  

SEE ALSO

YEvent(3) YEventAudioChange(3) YEventServerStats(3) YEventCycleChange(3) YEventDisconnect(3) YEventHost(3) YEventSoundKill(3) YEventMixer(3) YEventSoundPlay(3) YEventShutdown(3) YEventSync(3) YEventAudioStats(3) YEventYSHMSound(3) YEventAudioCDStats(3) YGetNextEvent(3) YPutBackEvent(3)


 

Index

NAME
STRUCTURES
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 21:59:21 GMT, April 16, 2011