24 Jul
2009
24 Jul
'09
10:50 a.m.
Guilherme Longo wrote:
I am trying to understand a piece of a code I am studing . What does exactly the functions snd_pcm_hw_params_set_period_time_near sets?
The period time.
In my understand period time should be the time between 2 consecutive samples,
In ALSA, a period is the interval between consecutive interrupts from the sound card; this is the same as a fragment in OSS.
When the application tries to write/read more than than would be available, ALSA waits until the next period boundary before checking again.
HTH Clemens