ALSA Library Reference Manual
DECLARATION
typedef struct snd_pcm_channel_params
{
int channel; /* channel information (IGNORED in kernel space) */
int mode; /* transfer mode */
snd_pcm_format_t format; /* playback format */
snd_pcm_digital_t digital; /* digital setup */
int start_mode; /* start mode - SND_PCM_START_XXXX */
int stop_mode; /* stop mode - SND_PCM_STOP_XXXX */
int time:1, /* timestamp (gettimeofday) switch */
ust_time:1; /* UST time switch */
snd_pcm_sync_t sync; /* sync group */
union
{
struct
{
int queue_size; /* queue size in bytes */
int fill; /* fill mode - SND_PCM_FILL_XXXX */
int max_fill; /* maximum silence fill in bytes */
}
stream;
struct
{
int frag_size; /* requested size of fragment in bytes */
int frags_min; /* capture: minimum of filled fragments for wakeup */
/* playback: minimum number of fragments writeable for wakeup */
int frags_max; /* playback: maximum number of fragments in queue for wakeup */
}
block;
}
buf; /* buffer parameters */
char reserved[64]; /* must be filled with zero */
}
snd_pcm_channel_params_t;
REFERENCE