search for: snd_pcm_hw_params_set_periods

Displaying 2 results from an estimated 2 matches for "snd_pcm_hw_params_set_periods".

2003 Mar 26
1
libao alsa output
...@ if (err < 0) goto error; - cmd = "snd_pcm_hw_params_set_period_size"; - err = snd_pcm_hw_params_set_period_size(internal->pcm_handle, hwparams, - internal->buf_size / internal->sample_size, 0); - if (err < 0) - goto error; - - cmd = "snd_pcm_hw_params_set_periods"; - err = snd_pcm_hw_params_set_periods(internal->pcm_handle, hwparams, - internal->periods * format->channels, 0); - if (err < 0) - goto error; - cmd = "snd_pcm_hw_params"; err = snd_pcm_hw_params(internal->pcm_handle, hwparams); if (e...
2004 Aug 06
2
Speex/Linux/ALSA
...speex? The ALSA call to snd_pcm_hw_params_set_rate_near is setting the rate to 11025 hz, the lowest I have been successful with. Q - how does this correlate to speex narrow and wide modes? The ALSA call to snd_pcm_hw_params_set_channels is setting it to a single channel (MONO) The ALSA call to snd_pcm_hw_params_set_periods is setting this to 2. Periods used to be called fragments. The ALSA call to snd_pcm_hw_params_set_buffer_size is setting this to the period size (8192) times the number of periods (2) The ALSA call to snd_pcm_readi has been tried with the number of frames set to 100, 160, 200, 2000. It puts the...