[alsa-devel] snd_pcm_writei() error: Write error: -32,Broken pipe

John Utz John.Utz at dmx.com
Fri Mar 23 19:08:42 CET 2007


Hello;

I am running into some trouble with writing out to the device, i get some sound and then i get the Write error.
Heres the code fragment:

      if (-EAGAIN == (iErr = snd_pcm_writei(handle, pu8Frames, iSizPer)))
      continue;
      
      if (0 > iErr) 
      {
	printf("Write error: %d,%s\n", iErr, snd_strerror(iErr));


Is the problem that my buffer (pointed to by pu8frames) isnt big enuf? or is this a different failure entirely.

If so, what are the possibilities?

tnx!


More information about the Alsa-devel mailing list