search for: snd_pcm_nonblock

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

2005 Sep 19
0
chan_alsa.c blocking sound port - solution
If anyone else is trying to use asterisk with the sound port AND use something else like mplayer my experience was asterisk BLOCKS the port. I added a bug item this morning to suggest a parameter control in alsa.conf and 1 line program change to chan_alsa.c of: snd_pcm_nonblock(handle, 1); Note this will always set NONBLOCK which is what I want at this time. The paramter in alsa.conf is more flexible. Took quite a while to find this (for me) hope it is valuable to others.... Jerry
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
...eam *stream; - snd_pcm_t *ret; - snd_pcm_hw_params_t *hw_params; - unsigned int rate; - snd_pcm_uframes_t uframes; - - /* "default" uses dmix, and dmix ticks way slow, so this thingy here stutters */ - ALSA_ERROR (snd_pcm_open (&ret, "default", SND_PCM_STREAM_PLAYBACK, SND_PCM_NONBLOCK), - "Failed to open sound device", ); - - snd_pcm_hw_params_alloca (&hw_params); - if (snd_pcm_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_ACCE...
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
...eam *stream; - snd_pcm_t *ret; - snd_pcm_hw_params_t *hw_params; - unsigned int rate; - snd_pcm_uframes_t uframes; - - /* "default" uses dmix, and dmix ticks way slow, so this thingy here stutters */ - ALSA_ERROR (snd_pcm_open (&ret, "default", SND_PCM_STREAM_PLAYBACK, SND_PCM_NONBLOCK), - "Failed to open sound device", ); - - snd_pcm_hw_params_alloca (&hw_params); - if (snd_pcm_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_ACCE...
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
...eam *stream; + snd_pcm_t *ret; + snd_pcm_hw_params_t *hw_params; + unsigned int rate; + snd_pcm_uframes_t uframes; + + /* "default" uses dmix, and dmix ticks way slow, so this thingy here stutters */ + ALSA_ERROR (snd_pcm_open (&ret, "default", SND_PCM_STREAM_PLAYBACK, SND_PCM_NONBLOCK), + "Failed to open sound device", ); + + snd_pcm_hw_params_alloca (&hw_params); + if (snd_pcm_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_ACCE...