* problem with "snd_pcm_hw_params_set_period_size_near"
@ 2003-09-27 14:44 James Courtier-Dutton
0 siblings, 0 replies; only message in thread
From: James Courtier-Dutton @ 2003-09-27 14:44 UTC (permalink / raw)
To: alsa-devel
if the buffer size has already been set to 16384, and the period_size is
trying to be set to 8196, why do I get the following results: -
period_size=8196
dir=0;
err = snd_pcm_hw_params_set_period_size_near(this->audio_fd, params,
&period_size, &dir);
result: period_size=8196
period_size=8196
dir=1;
err = snd_pcm_hw_params_set_period_size_near(this->audio_fd, params,
&period_size, &dir);
result: period_size=16384
In the second example, all that has changed in the value of "dir".
I though
-1 means find a value equal to or less than.
0 means find a value closest to.
1 means find a value equal to or greater than.
But the above experiment resulted in: -
1 means find a value greater than.
Cheers
James
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-09-27 14:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-27 14:44 problem with "snd_pcm_hw_params_set_period_size_near" James Courtier-Dutton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox