All of lore.kernel.org
 help / color / mirror / Atom feed
* short writes?
@ 2007-09-30 18:47 william estrada
  2007-09-30 19:07 ` J. Scott Merritt
  0 siblings, 1 reply; 2+ messages in thread
From: william estrada @ 2007-09-30 18:47 UTC (permalink / raw)
  To: alsa-devel

Hi group,

   I have written my own ALSA recorder and player.  Along with that I have
several bugs. The bug I am working on right now is 'short writes' when I
use the pipe command into my player.  My player runs and asks for the file
to play, so that I may play incoming files as they are sent in.  I have
a program that uses 'inotify' to watch for incoming file and then pipe
the file name into my player.

   Now with all of that, is there a API call that will put the writei into
blocking mode?  Or an API call that will flush the output from writei? Or
any other suggestions?

   Thanks for your time.

-- 
William Estrada
MrUmunhum@popdial.com
Mt-Umunhum-Wireless.net ( http://Mt-Umunhum-Wireless.net )
Ymessenger: MrUmunhum

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: short writes?
  2007-09-30 18:47 short writes? william estrada
@ 2007-09-30 19:07 ` J. Scott Merritt
  0 siblings, 0 replies; 2+ messages in thread
From: J. Scott Merritt @ 2007-09-30 19:07 UTC (permalink / raw)
  To: alsa-devel

On Sun, 30 Sep 2007 11:47:37 -0700
william estrada <MrUmunhum@popdial.com> wrote:

>  Now with all of that, is there a API call that will put the writei into
> blocking mode? 

snd_pcm_nonblock (pcm_handle, 0) ?

> Or an API call that will flush the output from writei?

snd_pcm_drain (pcm_handle) ?

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-09-30 19:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-30 18:47 short writes? william estrada
2007-09-30 19:07 ` J. Scott Merritt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.