Moving ring buffer construction in order to share them, to input streams
can write to same ring buffer.