search for: snd_pcm_hw_params_set_channels

Displaying 4 results from an estimated 4 matches for "snd_pcm_hw_params_set_channels".

2004 Aug 06
2
Speex/Linux/ALSA
...ting the sound format to unsigned 8 bit SND_PCM_FORMAT_U8 Q - Do I have to use 16 bit for 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...
2007 Jan 29
0
3 commits - autogen.sh configure.ac player/.gitignore player/Makefile.am player/swfdec_playback_alsa.c player/swfdec_playback.c player/swfdec_playback_none.c
...et, hw_params, SND_PCM_ACCESS_MMAP_INTERLEAVED) < 0) { - g_printerr ("Failed setting access\n"); - goto fail; - } - if (snd_pcm_hw_params_set_format (ret, hw_params, SND_PCM_FORMAT_S16) < 0) { - g_printerr ("Failed setting format\n"); - goto fail; - } - if (snd_pcm_hw_params_set_channels (ret, hw_params, 2) < 0) { - g_printerr ("Failed setting channels\n"); - goto fail; - } - rate = 44100; - if (snd_pcm_hw_params_set_rate_near (ret, hw_params, &rate, 0) < 0) { - g_printerr ("Failed setting rate\n"); - goto fail; - } - uframes = 16384;...
2007 Jan 31
0
Branch 'interpreter' - 20 commits - autogen.sh configure.ac libswfdec/js libswfdec/swfdec_debug.h libswfdec/swfdec_js.c libswfdec/swfdec_js_color.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_script.c
...et, hw_params, SND_PCM_ACCESS_MMAP_INTERLEAVED) < 0) { - g_printerr ("Failed setting access\n"); - goto fail; - } - if (snd_pcm_hw_params_set_format (ret, hw_params, SND_PCM_FORMAT_S16) < 0) { - g_printerr ("Failed setting format\n"); - goto fail; - } - if (snd_pcm_hw_params_set_channels (ret, hw_params, 2) < 0) { - g_printerr ("Failed setting channels\n"); - goto fail; - } - rate = 44100; - if (snd_pcm_hw_params_set_rate_near (ret, hw_params, &rate, 0) < 0) { - g_printerr ("Failed setting rate\n"); - goto fail; - } - uframes = 16384;...
2007 Mar 27
0
15 commits - configure.ac doc/Makefile.am doc/swfdec-docs.sgml doc/swfdec-sections.txt doc/swfdec.types libswfdec-gtk/.gitignore libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec-gtk.h libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_player.h
...et, hw_params, SND_PCM_ACCESS_MMAP_INTERLEAVED) < 0) { + g_printerr ("Failed setting access\n"); + goto fail; + } + if (snd_pcm_hw_params_set_format (ret, hw_params, SND_PCM_FORMAT_S16) < 0) { + g_printerr ("Failed setting format\n"); + goto fail; + } + if (snd_pcm_hw_params_set_channels (ret, hw_params, 2) < 0) { + g_printerr ("Failed setting channels\n"); + goto fail; + } + rate = 44100; + if (snd_pcm_hw_params_set_rate_near (ret, hw_params, &rate, 0) < 0) { + g_printerr ("Failed setting rate\n"); + goto fail; + } + uframes = 16384;...