Re: [Alsa-devel] dir parameter

2002-07-18 Thread Paul Davis

some functions take an int parameter called dir (e.g.:
snd_pcm_hw_params_set_rate()).
What is the meaning of that parameter?

its to let you know if the actual value set is above, below or equal
to the one you asked for.

--p



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel



Re: [Alsa-devel] dir parameter

2002-07-18 Thread FAU

Paul Davis wrote:

 some functions take an int parameter called dir (e.g.:
 snd_pcm_hw_params_set_rate()).
 What is the meaning of that parameter?

 its to let you know if the actual value set is above, below or equal
 to the one you asked for.

 --p

But how could this be in this case:
int snd_pcm_hw_params_set_rate(snd_pcm_t *pcm, snd_pcm_hw_params_t *params,
unsigned int val, int dir);
dir is not a pointer?

By the way, my impression was that only functions with _near postfix are allowed

to choose a value
different to the requested one?

/FAU




---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel