ALSA Library Reference Manual
DECLARATION
typedef struct snd_pcm_channel_setup
{
int channel; /* channel information */
int mode; /* transfer mode */
snd_pcm_format_t format; /* real used format */
snd_pcm_digital_t digital; /* digital setup */
union
{
struct
{
int queue_size; /* real queue size in bytes */
}
stream;
struct
{
int frag_size; /* current fragment size in bytes */
int frags; /* allocated fragments */
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;
char reserved[64]; /* must be filled with zero */
}
snd_pcm_channel_setup_t;
REFERENCE