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
One of the following types of event:
  • SND_PCM_EVENT_AUDIOMGMT_STATUS — 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 concurrency 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.
  • 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.
  • SND_PCM_EVENT_OVERRUN — the capture channel is in an overrun state. For information on repreparing the channel, see snd_pcm_channel_status_t.
  • SND_PCM_EVENT_UNDERRUN — the playback channel is in an underrun state. For information on repreparing the channel, see snd_pcm_channel_status_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 output class for the channel changed.

Classification:

QNX Neutrino