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