Allow CRingBuffer::WriteData() to receive const buffers
Fixed audio for emulators with single-frame sound by buffering for a full video frame.  Improved efficiency by switching from dynamically-allocated queue to a ring buffer.