I don't get it, let's see if you mean the same thing.
my code looks like:
Code:
while (1) {
udp->receive(buf1);
decode(buf1,buf2);
err = snd_pcm_writei(handle, buf2, length);
if (err == -EAGAIN)
xrun_recovery(handle);
}
here snd_pcm_writei returns EAGAIN ("Broken Pipe").