search for: snd_pcm_hw_params_set_format

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

2004 Aug 06
2
Speex/Linux/ALSA
...ly my biggest problem. With the speex API, I can create an executable, but when I run it, speex_bits_write always returns 38 bytes no matter what I send it. Here are some details of what I am doing, some questions I have, and hopefully someone can point out what I am doing wrong. The ALSA call to snd_pcm_hw_params_set_format is setting 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 c...
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
...cm_hw_params_any (ret, hw_params) < 0) { - g_printerr ("No sound format available\n"); - return; - } - if (snd_pcm_hw_params_set_access (ret, 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_pc...
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
...cm_hw_params_any (ret, hw_params) < 0) { - g_printerr ("No sound format available\n"); - return; - } - if (snd_pcm_hw_params_set_access (ret, 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_pc...
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
...cm_hw_params_any (ret, hw_params) < 0) { + g_printerr ("No sound format available\n"); + return; + } + if (snd_pcm_hw_params_set_access (ret, 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_pc...