All of lore.kernel.org
 help / color / mirror / Atom feed
* dir parameter
@ 2002-07-18 16:40 FAU
  2002-07-18 17:22 ` Paul Davis
  0 siblings, 1 reply; 3+ messages in thread
From: FAU @ 2002-07-18 16:40 UTC (permalink / raw)
  To: alsa-devel

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

Regards
    FAU




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: dir parameter
  2002-07-18 16:40 dir parameter FAU
@ 2002-07-18 17:22 ` Paul Davis
  2002-07-18 18:06   ` FAU
  0 siblings, 1 reply; 3+ messages in thread
From: Paul Davis @ 2002-07-18 17:22 UTC (permalink / raw)
  To: FAU; +Cc: alsa-devel

>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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: dir parameter
  2002-07-18 17:22 ` Paul Davis
@ 2002-07-18 18:06   ` FAU
  0 siblings, 0 replies; 3+ messages in thread
From: FAU @ 2002-07-18 18:06 UTC (permalink / raw)
  Cc: alsa-devel

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-07-18 18:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-18 16:40 dir parameter FAU
2002-07-18 17:22 ` Paul Davis
2002-07-18 18:06   ` FAU

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.