ma::cyclic_buffer refactoring done: duplicate code removed, assertions added.