Hi
I am a newbie in alsa programming.
I don't understand how the xrun state is working.
When i play a sample, it is stopped when i run
an other programm. Someone in this mailing list has said to
me, few days ago, it is because of xrun state.
So, i try to do it, but it doesn't works yet :
This is a sample of my programm :
n = snd_pcm_writei(sound_handle, buffer1, 1000000);
if (n == -EPIPE)
xrun();
void xrun(void)
{
printf("XRUN !!\n");
if ( snd_pcm_prepare(sound_handle) < 0)
printf("Erreur : ne peut acceder au handle !\n");
else
printf("Xrun : Ok!\n");
}
Can somebody help me ?
Thanks (and sorry for my english!)
______________________________________________________________________________
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif
_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel