Information about status change because audio concurrency management occurred on
the audio stream
Synopsis:
typedef struct snd_pcm_status_event
{
uint32_t old_status;
uint32_t new_status;
uint32_t flags;
#define SND_PCM_STATUS_EVENT_HARD_SUSPEND (1<<0)
#define SND_PCM_STATUS_EVENT_SOFT_SUSPEND (1<<1)
#define SND_PCM_STATUS_EVENT_AUTOPAUSE (1<<2)
} snd_pcm_status_event_t;
Description:
The snd_pcm_status_event structure describes status information about the event.
You can use this structure to get information about the
event. You get handle about this structure from the
snd_pcm_event_t()
structure.
The members include:
- flags
- The previous state that the channel had transitioned from, which
can be one of the following list of states. For more information about the various states,
see the PCM state machine section
in the Audio Architecture chapter of this book.
- new_status
- The current state that the channel had transitioned to, which
can be one of the following list of states. For more information about the various states,
see the PCM state machine section
in the Audio Architecture chapter of this book.
- flags
- A flag that indicates more information about the new status. It can be one of the
following values:
- SND_PCM_STATUS_EVENT_HARD_SUSPEND—The channel is in a hard suspended
(SND_PCM_STATUS_SUSPENDED) state, which means the channel
can't start playing when you call a snd_pcm_*_resume() function.
- SND_PCM_STATUS_EVENT_SOFT_SUSPEND— The channel is in a soft suspended
(SND_PCM_STATUS_SUSPENDED) state, which means the channel can start
playing when you call a snd_pcm_*_resume() function.
- SND_PCM_STATUS_EVENT_AUTOPAUSE—The channel is in the SUSPENDED
(SND_PCM_STATUS_SUSPENDED) state, but when the
suspension is lifted, the channel transitions to the PAUSED
(SND_PCM_STATUS_PAUSED) state because the audio
concurrency management policies were applied. In other words, the
application didn't call a snd_pcm_*_pause()
function to move to the PAUSED state.
.
Classification:
QNX Neutrino