>> seems like a good idea to me, although there is a small problem. the
>> current snd_pcm_wait function waits till the handles is
>> readable/writable, whereas the JACK code waits till the handles all
>> have a certain minimum amount of data/space.
>
>It does?  Reading the function, I cannot find where it checks to make
>sure that a minimum number of frames are available.  The main loop is
>while( need_capture || need_playback ), and these two conditions are
>satisfied simply by having the poll() not time out on the appropriate
>pfds.  Later it checks to see how many frames are available, but never
>branches based on the number.

i'm sorry, you're right about that. it returns the minimum number of frames
that are available modulo the period size (i.e. the number of whole
periods that can be processed at this time, expressed in frames). this
is quite different than the current function of snd_pcm_wait(), which
merely waits till a handle is ready (or has an error) according to poll.

--p


-------------------------------------------------------
This SF.NET email is sponsored by: Take your first step towards giving 
your online business a competitive advantage. Test-drive a Thawte SSL 
certificate - our easy online guide will show you how. Click here to get 
started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en
_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

Reply via email to