Skip to contentSkip to conversation

Problems with snd_pcm_wait() Incorrect return values.

DISCUSSION James Courtier-Dutton 1 participant 1 message Jul 16, 2003

lore
Share & tools
lore
#0 lore raw

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