Re: how many processed frames? + various thoughts

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

 



John John wrote:
> Knowing the sample rate and the processed samples, I'm able to
> calculate the clock (what do you think about this approach?).

The sound card's clock will not be exactly synchronous with the
computer's clock.

> is there a good function into alsa API which returns the number of
> processed frames?

snd_pcm_writei() does return the number of processed frames.

snd_pcm_delay() returns the offset to the position of the sample that is
currently being played.


Regards,
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