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

# YEventYSHMSound(3)

Y SHM Sound event structures

## NAME

YEventYSHMSound - Y SHM Sound event structures

## STRUCTURES

typedef struct {

        int minor\_op\_code;\
\
         int shm\_id;\
\
         void \*ptr;\
\
         int length;

} YEventYSHMSound;

When you receive this event, it means that the Y SHM Sound buffer has been closed or opened. In most cases this event is only reported when the Y SHM Sound buffer has been closed, which is indicated by the member minor\_op\_code being set to YSHMSoundClose.

If you are using Y SHM Sound, then you should watch for this event and reopen the Y SHM Sound buffer when you receive this event.  To reopen the Y SHM Sound buffer call YSHMCloseSound and then YSHMOpenSound immediately after receiving this event.

## SEE ALSO

[YEvent(3)](/man/YEvent/3.md) [YEventAudioChange(3)](/man/YEventAudioChange/3.md) [YEventServerStats(3)](/man/YEventServerStats/3.md) [YEventDisconnect(3)](/man/YEventDisconnect/3.md) [YEventCycleChange(3)](/man/YEventCycleChange/3.md) [YEventHost(3)](/man/YEventHost/3.md) [YEventSoundKill(3)](/man/YEventSoundKill/3.md) [YEventMixer(3)](/man/YEventMixer/3.md) [YEventSoundPlay(3)](/man/YEventSoundPlay/3.md) [YEventSoundObjectAttributes(3)](/man/YEventSoundObjectAttributes/3.md) [YEventShutdown(3)](/man/YEventShutdown/3.md) [YEventSync(3)](/man/YEventSync/3.md) [YEventAudioStats(3)](/man/YEventAudioStats/3.md) [YEventAudioCDStats(3)](/man/YEventAudioCDStats/3.md) [YSHMCloseSound(3)](/man/YSHMCloseSound/3.md) [YSHMOpenSound(3)](/man/YSHMOpenSound/3.md) [YGetNextEvent(3)](/man/YGetNextEvent/3.md) [YPutBackEvent(3)](/man/YPutBackEvent/3.md)
