These changes in MINIMAL FULL DUPLEX AP is not enought! I did this changes before, but was not able to get loop from input to output, althought I have programed the same application with using OSS before. So I little experiment to solve the problem. I set length of buffer at 44100 and tryed what happend. First it recorded first buffer length. Then it played the same length. And that is all. Then no sound recorded and no sound played. Is it somebody able to solve this problem to get final version of MINIMAL FULL DUPLEX? Thanks Pavel 12c10 < if ((snd_pcm_open ( &playback_handle, argv[1], SND_PCM_STREAM_PLAYBACK, 0)) < 0) { --- > if ((playback_handle = snd_pcm_open (argv[1], SND_PCM_STREAM_PLAYBACK, 0)) < 0) { 17c15 < if ((snd_pcm_open ( &capture_handle, argv[1], SND_PCM_STREAM_CAPTURE, 0)) < 0) { --- > if ((capture_handle = snd_pcm_open (argv[1], SND_PCM_STREAM_CAPTURE, 0)) < 0) { 27c25 < snd_pcm_hw_params_set_rate_near (playback_handle, hw_params, 44100, 0); --- > snd_pcm_hw_params_set_rate_near (playback_handle, hw_params, 44100); 35c33 < snd_pcm_hw_params_set_rate_near (capture_handle, hw_params, 44100, 0); --- > snd_pcm_hw_params_set_rate_near (capture_handle, hw_params, 44100); 45,46c43,44 < snd_pcm_writei (playback_handle, pbuf, sizeof (pbuf)); < snd_pcm_readi (capture_handle, cbuf, sizeof (cbuf)); --- > snd_pcm_write (playback_handle, pbuf, sizeof (pbuf)); > snd_pcm_read (capture_handle, cbuf, sizeof (cbuf));
_______________________________________________ Alsa-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-devel