ado_pcm_cap_t

Data structure of capabilities of a PCM device

Synopsis:

struct ado_pcm_cap
{
   uint32_t chn_flags;
   uint32_t formats;
   uint32_t rates;
   uint32_t min_rate;
   uint32_t max_rate;
   uint32_t min_voices;
   uint32_t max_voices;
   uint32_t min_fragsize;
   uint32_t max_fragsize;
   uint32_t max_dma_size;
   uint32_t max_frags;
} ado_pcm_cap_t;

Description:

The ado_pcm_cap_t structure describes the capabilities of the playback or capture portion of a PCM device. The members include:

chn_flags
One of the SND_PCM_CHNINFO_* flags. For more information, see snd_pcm_channel_info() in the QNX Audio Developer's Guide.
formats
The formats supported; any combination of the SND_PCM_FMT_* flags. For more information, see snd_pcm_find() in the QNX Audio Developer's Guide.
rates
The sample rate; a combination of:

or one of:

min_rate
The minimum sample rate if rates is SND_PCM_RATE_CONTINUOUS.
max_rate
The maximum sample rate if rates is SND_PCM_RATE_CONTINUOUS.
min_voices
Minimum number of voices.
max_voices
Maximum number of voices.
min_fragsize
Minimum fragment size for DMA transfer.
max_fragsize
Maximum fragment size for DMA transfer.
max_dma_size
Maximum DMA buffer size. A value of 0 means no limit.
max_frags
Maximum number of fragments. A value of 0 means no limit.

Classification:

QNX Neutrino

See also:

ado_pcm_create()

snd_pcm_channel_info(), snd_pcm_find() in the QNX Audio Developer's Guide