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


------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to