Lines Matching refs:hwparams
25 snd_pcm_hw_params_t *hwparams; in main() local
51 snd_pcm_hw_params_alloca(&hwparams); in main()
74 r = snd_pcm_hw_params_any(pcm, hwparams); in main()
77 r = snd_pcm_hw_params_set_rate_resample(pcm, hwparams, 0); in main()
80 r = snd_pcm_hw_params_set_access(pcm, hwparams, SND_PCM_ACCESS_RW_INTERLEAVED); in main()
83 r = snd_pcm_hw_params_set_format(pcm, hwparams, SND_PCM_FORMAT_S16_LE); in main()
86 r = snd_pcm_hw_params_set_rate_near(pcm, hwparams, &rate, NULL); in main()
89 r = snd_pcm_hw_params_set_channels(pcm, hwparams, CHANNELS); in main()
92 r = snd_pcm_hw_params_set_periods_integer(pcm, hwparams); in main()
95 r = snd_pcm_hw_params_set_periods_near(pcm, hwparams, &periods, &dir); in main()
98 r = snd_pcm_hw_params_set_buffer_size_near(pcm, hwparams, &buffer_size); in main()
101 r = snd_pcm_hw_params(pcm, hwparams); in main()
104 r = snd_pcm_hw_params_current(pcm, hwparams); in main()
119 r = snd_pcm_hw_params_get_buffer_size(hwparams, &buffer_size); in main()