search for: snd_pcm_hw_params_set_period

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

2003 Mar 26
1
libao alsa output
...the code is trying to do. patch: --- /var/tmp/portage/libao-0.8.3/work/libao-0.8.3/src/plugins/alsa09/ ao_alsa09.c 2001-12-19 07:39:24.000000000 +0900 +++ ao_alsa09.c 2003-03-23 17:30:40.000000000 +0900 @@ -192,18 +192,6 @@ 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, h...
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...