Hey Phil,
Thanks for that explanation! That does indeed look like the bug I'm experiencing. I am creating a new stream after closing the old one, so that's not the issue.
I'm familiar with Oboe (I watched your I/O 2017 talk about it), but have not been using it as I understand it to be in beta. It looks like a highly useful library though; this would allow me to move my minimum supported version back to Marshmallow (my app needs MIDI support).
However, given your endorsement here, I think I'll try swapping out my AAudio code with Oboe instead! Out of curiosity, will it be moved into the NDK when it is stable, or will it continue to exist as a GitHub repo?
-- Daniel