Separate out ring buffer tailored to audio buffering.

Now writes contiguous segments with memcpy() when adding samples to the
ring buffer like for reads.