problem with "snd_pcm_hw_params_set_period_size_near"
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