All of lore.kernel.org
 help / color / mirror / Atom feed
* Problems with snd_pcm_wait() Incorrect return values.
@ 2003-07-16 18:33 James Courtier-Dutton
  0 siblings, 0 replies; only message in thread
From: James Courtier-Dutton @ 2003-07-16 18:33 UTC (permalink / raw)
  To: alsa-devel

I cannot ever seem to get a return value of 1.
I always get return values of 0, regardless of the timeout value.
Can anyone help me?

Cheers
James



Extract from documentation: -
  int snd_pcm_wait  	(   	snd_pcm_t *  	 pcm,
		
		int 	timeout
	)  	
   	

Wait for a PCM to become ready.

Parameters:
     pcm  	PCM handle
     timeout  	maximum time in milliseconds to wait

Returns:
     a positive value on success otherwise a negative error code

Return values:
     0  	timeout occurred
     1  	PCM stream is ready for I/O

Examples:
     /test/latency.c, and /test/pcm.c.



-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-07-16 18:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-16 18:33 Problems with snd_pcm_wait() Incorrect return values James Courtier-Dutton

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.