Re: Is snd_pcm_hw_params_set_period_time_near the same as sampling period?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux