You solved my problem. I made some changes to the program, I now know that
the problem was not the small buffer. It's all working perfect. I got
the segmentation
fault. It plays it receives on stdin. I send you the program as an
attachment.
2012/4/11 Torsten Schenk
> Hello Fabio,
>
> > snd_pcm_w
Hello Fabio,
> snd_pcm_writei (playback_handle, p, 131072)
writes 131072 FRAMES
> p += 131072
increases the pointer by 131072 SAMPLES.
If you write
p += 131072 * number_of_channels
instead, your program should do the job.
Greets,
Torsten
---