made AudioRingBuffer frames capacity variable