SDL Audio - currently played sample

Hello

I would like to know what is the proper way within SDL to detect
currently played sample with some reasonable precision e.g. in the
range of 100 samples.

I’ve tried various sample sizes and it’s still a mystery for me
how it works…

Also it looks like it’s buffering some unpredictible number of
samples so I could not even guess if the played sample is
from the last block passed to fill audio thread.

And what should I do to clear audio buffer queue?

E.g. I want to stop currently played buffer and pass new sample
immediately - for now it looks I will have delays somewhere
between 0.01 - 0.2s (and even more with frequencies like 11KHz)–
.’’. Which fundamental human right do you want to give up today? : :' : Debian GNU/Linux maintainer - www.debian.{org,cz}. ' Zdenek Kabelac kabi@{debian.org, users.sf.net, fi.muni.cz}- When in doubt, just blame the Euro. :slight_smile: