最終更新:2024-11-30 (土) 02:45:12 (8d)
snd_pcm_hw_params_t
Top / snd_pcm_hw_params_t
PCM hardware configuration space container
https://www.alsa-project.org/alsa-doc/alsa-lib/group___p_c_m.html#ga65c737127994f0a980edad744e36dc40
snd_pcm_hw_params
struct snd_pcm_hw_params { unsigned int flags; struct snd_mask masks[SNDRV_PCM_HW_PARAM_LAST_MASK - SNDRV_PCM_HW_PARAM_FIRST_MASK + 1]; struct snd_mask mres[5]; /* reserved masks */ struct snd_interval intervals[SNDRV_PCM_HW_PARAM_LAST_INTERVAL - SNDRV_PCM_HW_PARAM_FIRST_INTERVAL + 1]; struct snd_interval ires[9]; /* reserved intervals */ unsigned int rmask; /* W: requested masks */ unsigned int cmask; /* R: changed masks */ unsigned int info; /* R: Info flags for returned setup */ unsigned int msbits; /* R: used most significant bits (in sample bit-width) */ unsigned int rate_num; /* R: rate numerator */ unsigned int rate_den; /* R: rate denominator */ snd_pcm_uframes_t fifo_size; /* R: chip FIFO size in frames */ unsigned char sync[16]; /* R: synchronization ID (perfect sync - one clock source) */ unsigned char reserved[48]; /* reserved for future */ };