I started looking at this and I ran into a few issues ... flushing the cache and the signed/unsigned sample conversion to name a few. and then I ended up just making a simple streaming only example. not what you asked for but it seemed like fun.
this example uses a larger playback buffer - and...