search for: snd_pcm_hw_params_set_buffer_size

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

2003 Mar 26
1
libao alsa output
...ents? Can this get applied? Thanks j. Hello, I was investigating reports that mpg321 (which uses libao) had distorted output when using the alsa09 output plugin. Looking at ao_plugin_open in ao_alsa09.c it makes a call to snd_pcm_hw_params_set_period_size when i think it should be called snd_pcm_hw_params_set_buffer_size. And in fact, making this change fixes the distortion for mp321. This is my first look at the alsa api so i don't really understand the significance of this change. It is also not obvious to me what the "correct" buffer size calculation should be. What is the real fix? Thanks...
2004 Aug 06
2
Speex/Linux/ALSA
...e 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 data read into an unsigned char array. After capturing the data, I copy the unsigned char array into a float a...