1 Oct
2010
1 Oct
'10
9:03 a.m.
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