snd_pcm_event_t

Information about the PCM event that occurred

Synopsis:

typedef struct snd_pcm_event
{
    int32_t                          type;
    uint8_t                          zero[4];
    union
    {
        snd_pcm_status_event_t      audiomgmt_status;
        snd_pcm_mute_event_t        audiomgmt_mute;
        snd_pcm_outputclass_event_t outputclass;
        uint8_t                     reserved[128];
	}   data;
	uint8_t                         reserved[128];
} snd_pcm_event_t;

Description:

The snd_pcm_event_t structure describes information about event for a channel. You can use this structure to get information about the event. To retrieve and event, you call snd_pcm_channel_read_event().

The members include:

type
The type of event that occurred, which can be one of the following:
  • SND_PCM_EVENT_AUDIOMGMT_STATUS–Indicates the status changed. To get more information about the event, you look at data, which is an snd_pcm_status_event_t.
  • SND_PCM_EVENT_AUDIO_MGMT_MUTE– The channel has been muted because audio management has ducked the volumeto zero. To get more information about the event, you look at data, which is an snd_pcm_mute_event_t or .
  • SND_PCM_EVENT_OUTPUTCLASS_CHANGE–The output class has been changed. You may need to reconfigure the audio stream. To get more information about the event, you look at data, which is an snd_pcm_outputclass_event_t.
.
data
The event, which is one of the following structure types:
  • snd_pcm_status_event_t– A state change occurred.
  • snd_pcm_mute_event_t–The channel was muted.
  • snd_pcm_outputclass_event_t–The outputclass for the channel changed.

Classification:

QNX Neutrino