[alsa-devel] Improving status timestamp accuracy

Clemens Ladisch clemens at ladisch.de
Sun Jun 5 18:27:06 CEST 2016


Alan Young wrote:
> On 04/06/16 16:59, Clemens Ladisch wrote:
>>> >I want to know, at any given point in wall-clock time, how many samples
>>> >have been output.
>>
>>  From the buffer, or from the speaker?
>
> Obviously the speaker would be ideal

That is reported by snd_pcm_delay().

But for what purpose do you need the number of samples?  What are you
going to do with that value?


Regards,
Clemens


More information about the Alsa-devel mailing list