[alsa-devel] How to keep track of the amount of queued samples?