---
name: "YEventSoundObjectAttributes"
section: "3"
platform: "linux"
package: "liby-dev"
version: "2.14.5-7"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/YEventSoundObjectAttributes"
---

# YEventSoundObjectAttributes(3)

Y sound object attributes event structures

## 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)](/YEvent/3.md) [YEventAudioChange(3)](/YEventAudioChange/3.md) [YEventServerStats(3)](/YEventServerStats/3.md) [YEventCycleChange(3)](/YEventCycleChange/3.md) [YEventDisconnect(3)](/YEventDisconnect/3.md) [YEventHost(3)](/YEventHost/3.md) [YEventSoundKill(3)](/YEventSoundKill/3.md) [YEventMixer(3)](/YEventMixer/3.md) [YEventSoundPlay(3)](/YEventSoundPlay/3.md) [YEventShutdown(3)](/YEventShutdown/3.md) [YEventSync(3)](/YEventSync/3.md) [YEventAudioStats(3)](/YEventAudioStats/3.md) [YEventYSHMSound(3)](/YEventYSHMSound/3.md) [YEventAudioCDStats(3)](/YEventAudioCDStats/3.md) [YGetNextEvent(3)](/YGetNextEvent/3.md) [YPutBackEvent(3)](/YPutBackEvent/3.md)
