On Thu, 21 Aug 2003, Arve Knudsen wrote:

> Hi
> 
> I'm not sure if I quite understand the alsa-lib docs regarding the 
> snd_pcm_hw_params API; in addition to an approximate integer value, one 
> might specify a direction. Is the direction parameter a way to instruct 
> ALSA to look for a floating point value in either direction? If that's the 
> case, couldn't this be handled with floats directly?

The direction means:

0 = use exactly equal number
-1 = use the most close previous number
1 = use the most close next number

You may also get most close value using the *_near() function. In this 
case, the direction selection is left on the library or driver code.

Regarding floats, we cannot use floats in a simple way in kernel so it's 
better to avoid this requirement.

                                                Jaroslav

-----
Jaroslav Kysela <[EMAIL PROTECTED]>
Linux Kernel Sound Maintainer
ALSA Project, SuSE Labs



-------------------------------------------------------
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/358/0
_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

Reply via email to