but as long as we're not overwriting old data (and I think we aren't) then I don't think there's a reason to ever have that limit? I think we can just remove it entirely.
This way, without changing some other things, we will be queuing up to 1sec of data. I am not sure if that will work very well with flush or setting stream position, as it will have to play the buffer through until it can do anything else (that's probably even regardless of my changes). Maybe we should then first reduce the buffer size to something like 40ms from 1sec?