opensles: take in account all buffered audio in latency
We only considered the audio already buffered through opensles engine, so the calculation was incorrect. Use samples rather than bytes for calculation, and a function rather than hardcoding 2*2 all over the place when a size in bytes is needed.
Showing
Please register or sign in to comment